mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
daemon: Harden systemd service
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
This commit is contained in:
parent
4e08c14cc3
commit
279b99e101
1 changed files with 9 additions and 2 deletions
|
|
@ -17,10 +17,17 @@ Requires=pulseaudio.socket
|
|||
ConditionUser=!root
|
||||
|
||||
[Service]
|
||||
ExecStart=@PA_BINARY@ --daemonize=no
|
||||
LockPersonality=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
NoNewPrivileges=yes
|
||||
Restart=on-failure
|
||||
RestrictNamespaces=yes
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
# Note that notify will only work if --daemonize=no
|
||||
Type=notify
|
||||
ExecStart=@PA_BINARY@ --daemonize=no
|
||||
Restart=on-failure
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
Also=pulseaudio.socket
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue