diff --git a/apache2.changes b/apache2.changes index 482913b..7060c81 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 26 08:17:42 UTC 2015 - jsegitz@novell.com + +- Patched get_module_list to ensure proper SELinux context for + sysconfig.d/loadmodule.conf + ------------------------------------------------------------------- Wed Feb 25 21:02:59 UTC 2015 - tchvatal@suse.com diff --git a/get_module_list b/get_module_list index 11066f8..9aac6ea 100644 --- a/get_module_list +++ b/get_module_list @@ -105,7 +105,12 @@ done echo >&3 -e "#\n" exec 3<&- chmod 644 $TMPFILE -mv $TMPFILE $sysconfdir/sysconfig.d/loadmodule.conf +if ! mv -Z $TMPFILE $sysconfdir/sysconfig.d/loadmodule.conf 2>/dev/null; then + mv $TMPFILE $sysconfdir/sysconfig.d/loadmodule.conf + if selinuxenabled; then + restorecon $sysconfdir/sysconfig.d/loadmodule.conf + fi +fi #echo -n ". "