We need to cop *.local policy files to keep local customizations also after upgrades between old and new module store location. BZ(#1279621).
This commit is contained in:
parent
db55b65949
commit
982e483908
@ -495,6 +495,9 @@ done
|
|||||||
for i in `find /etc/selinux/targeted/modules/active/modules/ -name \*.pp`; do
|
for i in `find /etc/selinux/targeted/modules/active/modules/ -name \*.pp`; do
|
||||||
INPUT="${INPUT}${CR}module -N -a $i"
|
INPUT="${INPUT}${CR}module -N -a $i"
|
||||||
done
|
done
|
||||||
|
for i in $(find /etc/selinux/targeted/modules/active -name \*.local); do
|
||||||
|
cp $i /var/lib/selinux/targeted/active
|
||||||
|
done
|
||||||
echo "$INPUT" | %{_sbindir}/semanage import -S targeted -N
|
echo "$INPUT" | %{_sbindir}/semanage import -S targeted -N
|
||||||
if /usr/sbin/selinuxenabled ; then
|
if /usr/sbin/selinuxenabled ; then
|
||||||
/usr/sbin/load_policy
|
/usr/sbin/load_policy
|
||||||
|
Loading…
Reference in New Issue
Block a user