]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: make sure everywhere is localstatedir
authorKarel Zak <kzak@redhat.com>
Mon, 4 Mar 2024 11:35:09 +0000 (12:35 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Mar 2024 11:35:09 +0000 (12:35 +0100)
_PATH_LOCALSTATEDIR and @localstatedir@ are defined by build-systems
and it's necessary to use it everywhere to keep things consistent.

Reference: https://github.com/util-linux/util-linux/pull/2825
Signed-off-by: Karel Zak <kzak@redhat.com>
liblastlog2/src/lastlog2.h
misc-utils/uuidd.service.in

index 28ed096c55ce8061553de4a14f13036ebdcfe6e1..280f387d6f7ca06bb09e835a0d018702516f5a9a 100644 (file)
@@ -32,7 +32,7 @@
 extern "C" {
 #endif
 
-#define LL2_DEFAULT_DATABASE "/var/lib/lastlog/lastlog2.db"
+#define LL2_DEFAULT_DATABASE _PATH_LOCALSTATEDIR "/lib/lastlog/lastlog2.db"
 
 #include <stdint.h>
 
index 330f1ab9b233f7297807d8bcbfb5e1723003762b..529d7238860ac4bc386ab97a97af0f154693ba67 100644 (file)
@@ -16,7 +16,7 @@ ProtectKernelTunables=yes
 ProtectKernelModules=yes
 ProtectControlGroups=yes
 MemoryDenyWriteExecute=yes
-ReadWritePaths=/var/lib/libuuid/
+ReadWritePaths=@localstatedir@/lib/libuuid/
 SystemCallFilter=@default @file-system @basic-io @system-service @signal @io-event @network-io
 
 [Install]