[audit/f19] If no rules exist, copy shipped rules into place

Steve Grubb sgrubb at fedoraproject.org
Fri May 3 18:35:49 UTC 2013


commit ac5dffd00087c244f35cea05aba9a1e83b23b888
Author: Steve <sgrubb at redhat.com>
Date:   Fri May 3 14:35:25 2013 -0400

    If no rules exist, copy shipped rules into place

 audit.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/audit.spec b/audit.spec
index 0d7d61d..17843b3 100644
--- a/audit.spec
+++ b/audit.spec
@@ -6,7 +6,7 @@
 Summary: User space tools for 2.6 kernel auditing
 Name: audit
 Version: 2.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 Group: System Environment/Daemons
 URL: http://people.redhat.com/sgrubb/audit/
@@ -149,6 +149,10 @@ rm -rf $RPM_BUILD_ROOT
 %post libs -p /sbin/ldconfig
 
 %post
+# Copy default rules into place on new installation
+if [ ! -e /etc/audit/audit.rules ] ; then
+	cp /etc/audit/rules.d/audit.rules /etc/audit/audit.rules
+fi
 %if %{WITH_SYSTEMD}
 %systemd_post auditd.service
 %else
@@ -273,6 +277,9 @@ fi
 %attr(644,root,root) %{_mandir}/man8/audisp-remote.8.gz
 
 %changelog
+* Fri May 03 2013 Steve Grubb <sgrubb at redhat.com> 2.3-2
+- If no rules exist, copy shipped rules into place
+
 * Tue Apr 30 2013 Steve Grubb <sgrubb at redhat.com> 2.3-1
 - New upstream bugfix release
 


More information about the scm-commits mailing list