mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
Running SUID is not longer supported
parent
5ae44f2b5b
commit
52d5795d04
|
@ -50,21 +50,3 @@ 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