-
Notifications
You must be signed in to change notification settings - Fork 99
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
systemd: d /run/stubby 0750 root stubby - - makes no sense #62
Comments
Because systemd service start fails with error 210/CHROOT until the directory exists. |
Ok, so we can just remove WorkingDir= from the system service file, and remove all the tmpfiles handling |
@dkg @letoams The systemd files were contributed. I suspect mode 0750 was a mistake. Or perhaps having UID root was. Stubby needs a writeable directory for Zero configuration DNSSEC. Would |
On Mon, 30 Apr 2018, wtoorop wrote:
@dkg @letoams The systemd files were contributed. I suspect mode 0750 was a mistake. It is desirable for stubby to have a
writeable directory for Zero configuration DNSSEC. Would /run/stubby be suitable for this? If so, I'll update the systemd
files and stubby.yml to suggest a configuration like that.
If there is no pid file in that directory then we can do that. If there
is a pid file then it would be dangerous to let stubby have permission
to change it to a potential malicious link.
Paul
|
@wtoorop This folder is supposed to remain empty outside of zero-config DNSSEC anyway. So no PID file here indeed. @wtoorop We might also want to use this as |
@ArchangeGabriel Yes, I agree the folder should be owned by user I will include a commented out
from the I don't have a strong preference whether or not to give the system user |
Done so with commit 862c90b |
@wtoorop Sorry for the delay in answering. Does the new systemd service file works if a stubby system user already exists? If you don’t know I’ll have a look later today. |
Yes, I tested. It will reuse the existing user. |
I found it in the doc too. So the current service file is really amazing! |
Oh and this issue should be closed now. ;) |
Thanks :)! |
tmpfiles say:
d /run/stubby 0750 root stubby - -
What is the point of /run/stubby in mode 0750 owner root, if stubby is started as user stubby?
It won't be able to write anything in the directory. If there is anything to read there, who places it in that directory (as root even, so not stubby itself)
Why is this directory needed at all?
The text was updated successfully, but these errors were encountered: