_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>
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>
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]