Blame SOURCES/audit-2.6.7-augenrules.patch

c672a9
diff -urp audit-2.6.5.orig/init.d/augenrules audit-2.6.5/init.d/augenrules
c672a9
--- audit-2.6.5.orig/init.d/augenrules	2016-07-14 10:25:39.000000000 -0400
c672a9
+++ audit-2.6.5/init.d/augenrules	2016-08-10 09:21:51.018391054 -0400
c672a9
@@ -125,6 +125,11 @@ if [ -f ${DestinationFile} ]; then
c672a9
 fi
c672a9
 # We copy the file so that it gets the right selinux lable
c672a9
 cp ${TmpRules} ${DestinationFile}
c672a9
+chmod 0640 ${DestinationFile}
c672a9
+# Restore context on MLS system. /tmp is SystemLow & audit.rules is SystemHigh
c672a9
+if [ -x /usr/sbin/restorecon ] ; then
c672a9
+	/usr/sbin/restorecon -F ${DestinationFile}
c672a9
+fi
c672a9
 rm -f ${TmpRules}
c672a9
 
c672a9
 try_load