Closed eworm-de closed 5 years ago
Had some dependency issues after with my initial commits...
Pushed an update that should work.
Dropped two security features (PrivateTmp=on
& ProtectHome=on
) and reverted to use root, instead limited capabilities.
Thanks a lot for PR! I have tested it on Fedora 31 and it works reliably. Merging.
NoNewPrivileges=on breaks the service.
haveged: Couldn't open random device: Permission denied
Are you sure your error is caused by NoNewPrivileges=on
? The message is just about opening a file (/dev/random
), nothing about elevating privileges. From systemd.exec(5)
:
Takes a boolean argument. If true, ensures that the service process and all its children can never gain new privileges through execve() (e.g. via setuid or setgid bits, or filesystem capabilities). [...]
With latest systemd struggle we had to update systemd service ordering for our Arch Linux package. In the end we would like to use an upstream service file, but keep our security features.
Further fragmenting the service files is a bad idea I think... So updated the Fedora one. @jirka-h, please test carefully this works for Fedora...