[systemd-devel] [PATCH] journalctl: support /usr/bin/nginx, etc

shawn shawnlandden at gmail.com
Wed May 30 14:16:11 PDT 2012


On Wed, 2012-05-30 at 23:12 +0200, Lennart Poettering wrote: 
> On Wed, 30.05.12 14:06, shawn (shawnlandden at gmail.com) wrote:
> 
> > 
> > Regarding the commited version:
> > 
> > <snip>
> > +                        if (S_ISREG(st.st_mode) && (0111 & st.st_mode))
> > {
> > </snip>
> > 
> > isn't it conceivable that some programs which would log would only be
> > executable by the owner (generally root)? because they might be suid
> > root? or then so we just revert to requiring the full _EXE= syntax?
> 
> (0111 & st.st_mode) returns non-zero when the x bit is set for either
> the owner, the group or others. Hence the right thing should happen, no?

oh you are right, sorry 
> 
> Lennart
> 


-- 
-Shawn Landden



More information about the systemd-devel mailing list