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

Michael Biebl biebl at debian.org
Mon Feb 3 08:04:36 GMT 2020


Am 03.02.20 um 08:50 schrieb Marc Haber:
> So I now suspect that the x bit gets set during the log rotation. What
> umask is the process doing the log rotation running with?

The rotation is done by journald itself [1] iirc

As for the umask:
$ systemctl show systemd-journald.service -p UMask
UMask=0022

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.

Regards,
Michael


[1]
https://salsa.debian.org/systemd-team/systemd/blob/debian/master/src/journal/journald-server.c#L442
https://salsa.debian.org/systemd-team/systemd/blob/debian/master/src/journal/journal-file.c#L3500

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200203/0226f5a2/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list