From: Karel Zak Date: Tue, 9 Jul 2024 15:04:09 +0000 (+0200) Subject: uuidd: fix /var/lib/libuuid mode uuidd-tmpfiles.conf X-Git-Tag: v2.42-start~273 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0c41735aa13a7a62e42c0428823537d3edc02a8;p=thirdparty%2Futil-linux.git 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 --- diff --git a/misc-utils/uuidd-tmpfiles.conf.in b/misc-utils/uuidd-tmpfiles.conf.in index b362930d8..90b8a8537 100644 --- a/misc-utils/uuidd-tmpfiles.conf.in +++ b/misc-utils/uuidd-tmpfiles.conf.in @@ -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 -