]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidd: fix /var/lib/libuuid mode uuidd-tmpfiles.conf
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jul 2024 15:04:09 +0000 (17:04 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jul 2024 15:10:33 +0000 (17:10 +0200)
commite0c41735aa13a7a62e42c0428823537d3edc02a8
tree1394b388926adecaf3d0318b144a8e2d85cbb48d
parentf459895e86de6736e575e9a0f3e17d789cc1b89d
uuidd: fix /var/lib/libuuid mode uuidd-tmpfiles.conf

The directory can be directly used by libuuid, for example, by running
"uuidgen --time" as root, even if the uuidd daemon is not installed.
In this case, we must create a clock.txt file with the uuidd group to
prevent any potential ownership mismatch if the uuidd daemon is
installed later. The 2xxx mode (setgid) forces open(O_CREAT) in
libuuid to create the file with the uuidd group.

Please note that mode 2755 is the standard used for years in RHEL.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/uuidd-tmpfiles.conf.in