]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
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)
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

index b362930d8b2c55918b87084fd0490b49b5f6b3e2..90b8a8537e65babfc17ac7637b70a4d2a9bb4400 100644 (file)
@@ -3,4 +3,4 @@
 # See tmpfiles.d(5) for details
 #
 d @runstatedir@/uuidd 2775 uuidd uuidd -
-d @localstatedir@/lib/libuuid 0755 uuidd uuidd -
+d @localstatedir@/lib/libuuid 2755 uuidd uuidd -