From 6f8ab1f632dd44a7c1d677f3ec966e40a866086b Mon Sep 17 00:00:00 2001 From: daviddavid Date: Thu, 9 May 2024 09:05:14 +0200 Subject: replace temporary dir from /var/run to /run --- cron-sh/security.sh | 2 +- src/msec/msec | 2 +- src/msec/msecperms | 2 +- src/msec/plugins/msec.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 016625b..85aab9f 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -43,7 +43,7 @@ fi CURRENT_CHECK_TYPE=$(current_check_type) # variables -LCK=/var/run/msec-security-${CURRENT_CHECK_TYPE}.pid +LCK=/run/msec-security-${CURRENT_CHECK_TYPE}.pid SECURITY_LOG="/var/log/security.log" MAIL_LOG_TODAY="/var/log/security/mail.${CURRENT_CHECK_TYPE}.today" MAIL_LOG_YESTERDAY="/var/log/security/mail.${CURRENT_CHECK_TYPE}.yesterday" diff --git a/src/msec/msec b/src/msec/msec index 83f22e4..a9a2367 100755 --- a/src/msec/msec +++ b/src/msec/msec @@ -8,7 +8,7 @@ if [ "`whoami`" != "root" ]; then exit 1 fi -LCK=/var/run/msec.pid +LCK=/run/msec.pid function cleanup() { rm -f $LCK diff --git a/src/msec/msecperms b/src/msec/msecperms index ab80b74..2b27163 100755 --- a/src/msec/msecperms +++ b/src/msec/msecperms @@ -8,7 +8,7 @@ if [ "`whoami`" != "root" ]; then exit 1 fi -LCK=/var/run/msec.pid +LCK=/run/msec.pid function cleanup() { rm -f $LCK diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py index 5b18f62..b7d862f 100755 --- a/src/msec/plugins/msec.py +++ b/src/msec/plugins/msec.py @@ -34,7 +34,7 @@ CRONALLOW = '/etc/cron.allow' FSTAB = '/etc/fstab' GDM = '/etc/pam.d/gdm' GDMCONF = '/etc/X11/gdm/custom.conf' -GDM230 = '/var/run/gdm' +GDM230 = '/run/gdm' HALT = '/usr/bin/halt' HOSTCONF = '/etc/host.conf' HOSTSDENY = '/etc/hosts.deny' -- cgit v1.2.1