[systemd-devel] systemd 211 journal getting created with different permissions

Greg KH gregkh at linuxfoundation.org
Tue Mar 11 20:38:58 PDT 2014


On Wed, Mar 12, 2014 at 04:21:55AM +0200, Mantas Mikulėnas wrote:
> On Wed, Mar 12, 2014 at 3:46 AM, Greg KH <gregkh at linuxfoundation.org> wrote:
> > Hi all,
> >
> > With systemd 211, a new journal file is getting created with permissions
> > of root:root instead of root:systemd-journal like previously (210 and
> > prior).
> >
> > I looked at the git log and can't see anything obvious that would have
> > caused this.
> >
> > Is this intentional?  Or something on my end with my system's
> > configuration?
> 
> Normally the journal files just inherit the group of /var/log/journal,
> which has the setgid bit (and the correct group) set by
> /usr/lib/tmpfiles.d/systemd.conf.

I thought so, and this worked on 210, and the permissions of
/var/log/journal/ is correct:

drwxr-sr-x 2 root systemd-journal 4096 Mar 12 01:36 0da484f8dee497fee9585ba9531fb7f1

> If you ran `make install`, however, it would chown /var/log/journal to
> 0:0 until the next time systemd-tmpfiles ran.

This gets created by the ebuild (this is on CoreOs), and the 210 ebuild
worked, so what is different here?

confused,

greg k-h


More information about the systemd-devel mailing list