Skip to content
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

Suggestion: use DynamicUser=yes in nqptp.service #33

Closed
nettings opened this issue Feb 23, 2024 · 4 comments
Closed

Suggestion: use DynamicUser=yes in nqptp.service #33

nettings opened this issue Feb 23, 2024 · 4 comments

Comments

@nettings
Copy link

Hi @mikebrady,

I'm using nqptp/shairport-sync as part of a media distribution for the raspberry pi, and it's quite inconvenient for me to have to add and maintain a new nqptp user and group for the purpose of privilege separation. The lazy bastard that I am uses DynamicUser=yes in the service file instead of setting user and group to nqptp.
And I found out that you actually get additional security benefits from that, as the service is essentially sandboxed from the system, check out Lennart's little howto.
Now I don't know if this has actual benefits in the case of nqptp, but I'm definitely going to play with this some more for other exposed services, and maybe it provides inspiration for you as well.

All best, Jörn

@mikebrady
Copy link
Owner

Many thanks for the suggestion and the pointer. I'll look into it, but it may take a little time!

@mikebrady
Copy link
Owner

Thanks again for that Dynamic Users hint -- it looks interesting.

@mikebrady
Copy link
Owner

Hi there. I implemented that suggestion in the development branch. It seems to work well, so thanks for the suggestion.

@nettings
Copy link
Author

nettings commented Apr 1, 2024

Glad to hear you're finding it useful, too!

@nettings nettings closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants