Bug#746279: systemd: wrong permissions on non-persistent /run/log/journal

Alessandro Ghedini ghedo at debian.org
Mon Apr 28 18:19:06 BST 2014


Package: systemd
Version: 208-1
Severity: normal

Control: forwarded -1 https://bugs.freedesktop.org/show_bug.cgi?id=70866
Control: tags -1 fixed-upstream

Hi,

when the /run/log/journal directory is created its owner is root:root instead
of root:systemd-journal. This makes it impossible for systemd-journal users to
read the non-persistent logs without sudo.

This seems to be fixed upstream [0], except that the patch is incomplete, since
I also had to add the line:

    m /run/log/journal/%m/system.journal 2755 root systemd-journal - -

to /usr/lib/tmpfiles.d/systemd.conf, because, while the directory got the right
owner, the journal file did not (it was still root:root).

Could you please incorporate the patch in the Debian package?

Thanks

[0] http://cgit.freedesktop.org/systemd/systemd/commit/?id=7074fecf6747c9a

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  acl                  2.2.52-1
ii  adduser              3.113+nmu3
ii  initscripts          2.88dsf-53
ii  libacl1              2.2.52-1
ii  libaudit1            1:2.3.6-1
ii  libblkid1            2.20.1-5.7
ii  libc6                2.18-5
ii  libcap2              1:2.22-1.2
ii  libcap2-bin          1:2.22-1.2
ii  libcryptsetup4       2:1.6.4-4
ii  libdbus-1-3          1.8.0-3
ii  libgcrypt11          1.5.3-4
ii  libkmod2             16-2
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.8-3
ii  libselinux1          2.2.2-1
ii  libsystemd-daemon0   208-1
ii  libsystemd-journal0  208-1
ii  libsystemd-login0    208-1
ii  libudev1             208-1
ii  libwrap0             7.6.q-25
ii  sysv-rc              2.88dsf-53
ii  udev                 208-1
ii  util-linux           2.20.1-5.7

Versions of packages systemd recommends:
ii  libpam-systemd  208-1

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information
-------------- next part --------------
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-SendSIGHUP.conf
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-TimeoutStopUSec.conf
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-KillMode.conf
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-After-systemd-user-sessions\x2eservice.conf
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-Description.conf
[EXTENDED]   /run/systemd/system/session-c4.scope ? /run/systemd/system/session-c4.scope.d/90-Slice.conf
[EXTENDED]   /lib/systemd/system/user at .service ? /etc/systemd/system/user at .service.d/environment.conf

7 overridden configuration files found.
-------------- next part --------------
==> /var/lib/systemd/deb-systemd-helper-enabled/lm-sensors.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/lm-sensors.service

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/lm-sensors.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/transmission-daemon.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/transmission-daemon.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/transmission-daemon.service


More information about the Pkg-systemd-maintainers mailing list