From d283c67c3e84595fdd6a67fe7a07a4b805cd4f8c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 4 Mar 2024 12:35:09 +0100 Subject: [PATCH] build-sys: make sure everywhere is localstatedir _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 (cherry picked from commit 720301e04f339274652150f305d9e9f3e504ac6e) --- liblastlog2/src/lastlog2.h | 2 +- misc-utils/uuidd.service.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/liblastlog2/src/lastlog2.h b/liblastlog2/src/lastlog2.h index 28ed096c55..280f387d6f 100644 --- a/liblastlog2/src/lastlog2.h +++ b/liblastlog2/src/lastlog2.h @@ -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 diff --git a/misc-utils/uuidd.service.in b/misc-utils/uuidd.service.in index 330f1ab9b2..529d723886 100644 --- a/misc-utils/uuidd.service.in +++ b/misc-utils/uuidd.service.in @@ -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] -- 2.47.3