From 6ebb8c09c46e5767fb48cb35ef11a973211b9c09 Mon Sep 17 00:00:00 2001 From: HuaxinLuGitee <1539327763@qq.com> Date: Tue, 24 Nov 2020 18:48:50 +0800 Subject: [PATCH] move autorelabel creating to postun --- selinux-policy.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 51ae559..976cdff 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 -- Gitee