|Summary:||www-servers/nginx - init script changes owner and mode of /var/log/nginx on each startup/restart|
|Product:||Gentoo Linux||Reporter:||Coacher <itumaykin+gentoo>|
|Component:||New packages||Assignee:||Benedikt Böhm (RETIRED) <hollow>|
|Package list:||Runtime testing required:||---|
Description Coacher 2012-12-10 13:29:15 UTC
With recent update of nginx initscript with checkpath code mode and owner checks for /var/log/nginx were introduced. I have a custom syslog setup with all logfiles having the same group (not root) so logcheck could read them. Also I don't really want anyone to look into my /var/log/nginx so it has 0750 mode. But with latest version of initscript all of these won't be taken in account and I will forcidly have 0755 dir with root:root perms on EACH restart of nginx. This is wrong. Please do something with it. Wouldn't it be better to create /var/log/nginx from ebuild during postinstall? Or at least add a simple test check in ebuild like if [ -d /var/log/nginx ]; then checkpath ... fi Reproducible: Always
Comment 1 Coacher 2012-12-10 13:33:35 UTC
Should be, of course if [ ! -d /var/log/nginx ]; then ...
Comment 2 Benedikt Böhm (RETIRED) 2012-12-20 08:11:22 UTC
Comment 3 Coacher 2013-01-21 03:28:06 UTC
Reopening. Adding `-q` parameter to checkpath doesn't solve this. Ownership and mode are still changed on every nginx restart. Please add `if` clause.
Comment 4 Coacher 2013-03-14 20:52:21 UTC
Comment 5 Benedikt Böhm (RETIRED) 2013-04-25 06:45:18 UTC