From f7c5089018a1d36134cb71a9ee142f6772656691 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mar 09 2026 14:10:48 +0000 Subject: Spec file: create /var/lib/certmonger/ with systemdtmpfiles Add the creation of /var/lib/certmonger/ directory through systemdtmpfiles so that a bootc image can create the lock file in /var/lib/certmonger/lock Signed-off-by: Florence Blanc-Renaud --- diff --git a/configure.ac b/configure.ac index f621a07..7ec488c 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,8 @@ mylocalstatedir="$localstatedir/lib/${PACKAGE_NAME}") mylocalstatedir=`eval echo $mylocalstatedir | sed "s,NONE,$prefix,g"` mylocalstatedir=`eval echo $mylocalstatedir | sed "s,NONE,$ac_default_prefix,g"` mylocalstatedir=`eval echo $mylocalstatedir | sed "s,NONE,,g"` +CM_STORE_LOCAL_STATE_DIR="$mylocalstatedir" +AC_SUBST(CM_STORE_LOCAL_STATE_DIR) CM_STORE_SYSTEM_LOCK_FILE="$mylocalstatedir/lock" CM_STORE_SYSTEM_LOCK_FILE_ENV="${UPCASE_PACKAGE_NAME}_SYSTEM_LOCK_FILE" diff --git a/systemd/certmonger.conf.in b/systemd/certmonger.conf.in index 0c0c0d3..5fbdc57 100644 --- a/systemd/certmonger.conf.in +++ b/systemd/certmonger.conf.in @@ -1,3 +1,4 @@ # certmonger uses libraries which may want to put temporary files in $TMPDIR, # but SELinux policy won't let anything running as certmonger_t do that d @CM_TMPDIR@ 0755 root root +d @CM_STORE_LOCAL_STATE_DIR@ 0755 root root \ No newline at end of file