!41 move autorelabel creating to postun on LTS
From: @HuaxinLuGitee Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
17ee29acf4
@ -12,7 +12,7 @@
|
|||||||
Summary: SELinux policy configuration
|
Summary: SELinux policy configuration
|
||||||
Name: selinux-policy
|
Name: selinux-policy
|
||||||
Version: 3.14.2
|
Version: 3.14.2
|
||||||
Release: 59
|
Release: 60
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/fedora-selinux/selinux-policy/
|
URL: https://github.com/fedora-selinux/selinux-policy/
|
||||||
|
|
||||||
@ -388,8 +388,6 @@ SELINUXTYPE=targeted
|
|||||||
else
|
else
|
||||||
. %{_sysconfdir}/selinux/config
|
. %{_sysconfdir}/selinux/config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch /.autorelabel
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
@ -400,6 +398,8 @@ if [ $1 = 0 ]; then
|
|||||||
else
|
else
|
||||||
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' %{_sysconfdir}/selinux/config
|
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' %{_sysconfdir}/selinux/config
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
touch /.autorelabel
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -731,6 +731,9 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.14.2-60
|
||||||
|
- move autorelabel creating to postun
|
||||||
|
|
||||||
* Fri Nov 6 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.14.2-59
|
* Fri Nov 6 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.14.2-59
|
||||||
- create autorelabel file after install
|
- create autorelabel file after install
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user