Accepting request 287858 from home:jsegitz:branches:Apache

- Patched get_module_list to ensure proper SELinux context for
  sysconfig.d/loadmodule.conf

OBS-URL: https://build.opensuse.org/request/show/287858
OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=439
This commit is contained in:
Tomáš Chvátal 2015-03-02 13:56:03 +00:00 committed by Git OBS Bridge
parent 9eaa42a2d9
commit 35630bb4ed
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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 ". "