diff --git a/selinux-policy.spec b/selinux-policy.spec index 51ae5599bcf273c0ed6625db85ba1f6d57c04619..976cdffbc2ee2a868d4eb3097bb8e20c65d134d1 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 @@ -400,6 +398,8 @@ if [ $1 = 0 ]; then else sed -i 's/^SELINUX=.*/SELINUX=disabled/g' %{_sysconfdir}/selinux/config fi +else + touch /.autorelabel fi exit 0 @@ -731,6 +731,9 @@ exit 0 %endif %changelog +* Tue Nov 24 2020 openEuler Buildteam - 3.14.2-60 +- move autorelabel creating to postun + * Fri Nov 6 2020 openEuler Buildteam - 3.14.2-59 - create autorelabel file after install