diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch index 85acc1d..ec80953 100644 --- a/policycoreutils-rhat.patch +++ b/policycoreutils-rhat.patch @@ -6,7 +6,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/fixfiles policyc if [ -e /etc/selinux/config ]; then . /etc/selinux/config - FC=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts -+ FC=`mktemp /var/tmp/file_contexts.XXXXXX` ++ FC=`mktemp /etc/selinux/${SELINUXTYPE}/contexts/files/file_context.XXXXXX` + 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 diff --git a/policycoreutils.spec b/policycoreutils.spec index e4a8edd..02cbec6 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -1,7 +1,7 @@ Summary: SELinux policy core utilities. Name: policycoreutils Version: 1.21.3 -Release: 1 +Release: 2 License: GPL Group: System Environment/Base Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz @@ -81,6 +81,9 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Fri Jan 20 2005 Dan Walsh 1.21.3-2 +- Temp file needs to be created in /etc/selinux/POLICYTYPE/contexts/files/ directory. + * Fri Jan 20 2005 Dan Walsh 1.21.3-1 - Upgrade to latest from NSA * Fixed restorecon to not treat errors from is_context_customizable()