Bug#934284: journal sometimes with x-bit, sometimes without

Marc Haber mh+debian-bugs at zugschlus.de
Mon Feb 3 08:30:00 GMT 2020


On Mon, Feb 03, 2020 at 09:04:36AM +0100, Michael Biebl wrote:
> You should be able to trigger an explicit rotation by sending the
> journald process SIGUSR2
> $ systemctl kill --signal=USR2 systemd-journald.service
> 
> This should make it easier for you to check your theory.

Funny, my testsystems come up with the log already rotated:
1 [1/3507]mh at emptybuster84:~ $ ls -lart /run/log/journal/*/
total 1,0M
drwxr-sr-x  3 root systemd-journal   60 Feb  3 09:23 ../
drwxr-s---+ 2 root systemd-journal   80 Feb  3 09:23 ./
-rw-r-----+ 1 root systemd-journal 512K Feb  3 09:23
system\@df0e6fdb74704597bc1caa52e21c2e51-0000000000000001-00059da7a4f87ae4.journal
-rw-r-----+ 1 root systemd-journal 512K Feb  3 09:26 system.journal
and the X bit already set.

But here is the proof:
1 [1/1534]mh at roll:~ $ ls -al /run/log/journal/*
total 5,0M
drwxr-s---+ 2 root systemd-journal   60 Feb  3 08:48 ./
drwxr-sr-x  3 root systemd-journal   60 Feb  3 08:48 ../
-rw-r-----+ 1 root systemd-journal 5,0M Feb  3 09:27 system.journal
[2/1535]mh at roll:~ $ sudo getfacl /run/log/journal/a663cb108c444a01ac0802d96eb0bccc/system.journal 
[sudo] password for mh on roll: 
getfacl: Removing leading '/' from absolute path names
# file: run/log/journal/a663cb108c444a01ac0802d96eb0bccc/system.journal
# owner: root
# group: systemd-journal
user::rw-
group::r--
group:adm:r--
mask::r--
other::---

[3/1536]mh at roll:~ $ systemctl kill --signal=USR2 systemd-journald.service
Failed to kill unit systemd-journald.service: Access denied
1 [4/1537]mh at roll:~ $ sudo systemctl kill --signal=USR2 systemd-journald.service
[5/1538]mh at roll:~ $ sudo getfacl /run/log/journal/a663cb108c444a01ac0802d96eb0bccc/system.journal 
getfacl: Removing leading '/' from absolute path names
# file: run/log/journal/a663cb108c444a01ac0802d96eb0bccc/system.journal
# owner: root
# group: systemd-journal
user::rw-
group::r-x                      #effective:r--
group:adm:r-x                   #effective:r--
mask::r--
other::---

[6/1539]mh at roll:~ $ 

This is a not-so-current sid (I have held updating for some days because
I didn't want the change to persistent logs affect the debugging) with
systemd 244-3.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421



More information about the Pkg-systemd-maintainers mailing list