diff --git a/selinux-policy.spec b/selinux-policy.spec index 51ae5599bcf273c0ed6625db85ba1f6d57c04619..a33c3190fbf98095390669e555e11d0ac930183a 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -12,7 +12,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 3.14.2 -Release: 59 +Release: 60 License: GPLv2+ URL: https://github.com/fedora-selinux/selinux-policy/ @@ -388,8 +388,6 @@ SELINUXTYPE=targeted else . %{_sysconfdir}/selinux/config fi - -touch /.autorelabel exit 0 %postun @@ -401,6 +399,9 @@ if [ $1 = 0 ]; then sed -i 's/^SELINUX=.*/SELINUX=disabled/g' %{_sysconfdir}/selinux/config fi fi + +touch /.autorelabel + exit 0 %files @@ -731,6 +732,9 @@ exit 0 %endif %changelog +* Tue Nov 24 2020 openEuler Buildteam - 3.14.2-60 +- move autorelabel to postun + * Fri Nov 6 2020 openEuler Buildteam - 3.14.2-59 - create autorelabel file after install