-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support not running as root #24
base: main
Are you sure you want to change the base?
Conversation
@@ -4,6 +4,9 @@ Description=Speaker Protection Daemon | |||
[Service] | |||
Type=simple | |||
ExecStart=/usr/bin/speakersafetyd -c /usr/share/speakersafetyd/ -b /var/lib/speakersafetyd/blackbox -m 7 | |||
User=speakersafetyd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make sense to use DynamicUser
for this, so distributions won't have to manage yet another static service user. Something like:
DynamicUser=yes
User=speakersafetyd
Group=speakersafetyd
RuntimeDirectory=/run/speakersafetyd
StateDirectory=/var/lib/speakersafetyd
(completely untested to be clear)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nay on dynamic user, speakersafetyd generates a "blackbox" file on crash, and services using dynamic user are not supposed to leave non-temporary files on exit.
We don't need to be running as root. Let's run as speakersafetyd by default. Signed-off-by: James Calligeros <[email protected]>
Thanks a lot! I've been running like so for some time on my Void machine, and it works well. |
We don't need to be running as root. Let's run as speakersafetyd by default.