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