2005-01-21 18:56:16 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.21.1/scripts/fixfiles
|
2005-01-24 16:26:39 +00:00
|
|
|
--- nsapolicycoreutils/scripts/fixfiles 2005-01-24 11:19:10.103136000 -0500
|
|
|
|
+++ policycoreutils-1.21.1/scripts/fixfiles 2005-01-24 11:19:28.998223000 -0500
|
2005-01-21 18:56:16 +00:00
|
|
|
@@ -37,11 +37,19 @@
|
|
|
|
SELINUXTYPE="targeted"
|
|
|
|
if [ -e /etc/selinux/config ]; then
|
|
|
|
. /etc/selinux/config
|
|
|
|
- FC=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts
|
2005-01-24 17:39:30 +00:00
|
|
|
+ FC=`mktemp /etc/selinux/${SELINUXTYPE}/contexts/files/file_context.XXXXXX`
|
2005-01-21 18:56:16 +00:00
|
|
|
+ cat /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts.local > $FC 2> /dev/null
|
|
|
|
else
|
|
|
|
FC=/etc/security/selinux/file_contexts
|
|
|
|
fi
|
|
|
|
|
|
|
|
+cleanup() {
|
|
|
|
+ if [ -e /etc/selinux/config -a -f "$FC" ]; then
|
|
|
|
+ rm -f $FC
|
|
|
|
+ fi
|
|
|
|
+}
|
|
|
|
+trap "cleanup" 0 1 2 3 13 15
|
|
|
|
+
|
|
|
|
#
|
|
|
|
# Log to either syslog or a LOGFILE
|
|
|
|
#
|