[packages/audit] Rel 2; by default use nochange behaviour, like 10-noaudit udev rule says

arekm arekm at pld-linux.org
Wed Apr 29 23:37:58 CEST 2026


commit 692302e0b9ec015a45f03b345e9df121ababcd5d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 29 23:37:52 2026 +0200

    Rel 2; by default use nochange behaviour, like 10-noaudit udev rule says

 audit.spec       | 2 +-
 auditd.init      | 3 ++-
 auditd.sysconfig | 7 +++++++
 3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/audit.spec b/audit.spec
index 565b223..cf1a685 100644
--- a/audit.spec
+++ b/audit.spec
@@ -14,7 +14,7 @@ Summary:	User space tools for 2.6 kernel auditing
 Summary(pl.UTF-8):	Narzędzia przestrzeni użytkownika do audytu jąder 2.6
 Name:		audit
 Version:	4.1.4
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Daemons
 Source0:	https://github.com/linux-audit/audit-userspace/archive/refs/tags/v%{version}.tar.gz
diff --git a/auditd.init b/auditd.init
index 4453426..49508a5 100755
--- a/auditd.init
+++ b/auditd.init
@@ -20,6 +20,7 @@ PATH=/sbin:/bin:/usr/bin:/usr/sbin
 
 AUDITD_CLEAN_STOP="yes"
 AUDITD_STOP_DISABLE="yes"
+AUDITD_ENABLE_STATE="nochange"
 EXTRAOPTIONS=
 AUDIT_RULES=/etc/audit/audit.rules
 
@@ -48,7 +49,7 @@ start() {
 		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
 	fi
 	unset HOME MAIL USER USERNAME
-	daemon /sbin/auditd "$EXTRAOPTIONS"
+	daemon /sbin/auditd -s "$AUDITD_ENABLE_STATE" $EXTRAOPTIONS
 	RETVAL=$?
 	# Load the default rules if daemon started
 	if [ $RETVAL -eq 0 ] && [ -f $AUDIT_RULES ]; then
diff --git a/auditd.sysconfig b/auditd.sysconfig
index e46687b..925ebd6 100644
--- a/auditd.sysconfig
+++ b/auditd.sysconfig
@@ -3,6 +3,13 @@
 # Nice level for auditd
 #SERVICE_RUN_NICE_LEVEL=0
 
+#   nochange - keep the current kernel setting and let loaded rules decide
+#              whether auditing is enabled
+#   enable   - force auditing on at startup
+#   disable  - force auditing off at startup
+# The default is "nochange".
+AUDITD_ENABLE_STATE="nochange"
+
 # Add extra options here
 EXTRAOPTIONS=""
 #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/audit.git/commitdiff/692302e0b9ec015a45f03b345e9df121ababcd5d



More information about the pld-cvs-commit mailing list