mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 09:21:28 +00:00
Running SUID is not longer supported
parent
5ae44f2b5b
commit
52d5795d04
|
@ -49,22 +49,4 @@ To have sway run as root in order to gain access to the resources you need, you
|
||||||
chmod +s /usr/bin/sway
|
chmod +s /usr/bin/sway
|
||||||
```
|
```
|
||||||
|
|
||||||
Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications.
|
Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications.
|
||||||
|
|
||||||
# Tips and Tricks
|
|
||||||
|
|
||||||
## Archlinux without systemd/elogind
|
|
||||||
In order to automatically keep the extra privileges after a sway installation/upgrade, add the following pacman hook to `/etc/pacman.d/hooks`:
|
|
||||||
```
|
|
||||||
[Trigger]
|
|
||||||
Operation = Install
|
|
||||||
Operation = Upgrade
|
|
||||||
Type = Package
|
|
||||||
Target = sway
|
|
||||||
Target = sway-git
|
|
||||||
|
|
||||||
[Action]
|
|
||||||
Description = Applying setuid-bit to sway
|
|
||||||
When = PostTransaction
|
|
||||||
Exec = /usr/bin/chmod +s /usr/bin/sway
|
|
||||||
```
|
|
Loading…
Reference in a new issue