]> 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>
Wed, 10 Jul 2024 08:13:38 +0000 (10:13 +0200)
commit555152c36b1026ea97eb06a9a57fac154fa36ed0
tree49d6a2b686a1cf5d73905e9a8c2a52aa838a6f74
parent1cebcc34373ed34266f726fff71030a83b4df7da
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>
(cherry picked from commit e0c41735aa13a7a62e42c0428823537d3edc02a8)
misc-utils/uuidd-tmpfiles.conf.in