From aabec045ac2343f5ffd0a74f0d6537690c818be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=8D=8E=E6=AD=86?= <1539327763@qq.com> Date: Mon, 23 Nov 2020 19:22:12 +0800 Subject: [PATCH 1/2] move autorelabel to postun --- selinux-policy.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 51ae559..c375a68 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -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 -- Gitee From 9f4f9861a6625afc6b719fec3b65eb74d1a2310c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=8D=8E=E6=AD=86?= <1539327763@qq.com> Date: Tue, 24 Nov 2020 10:33:47 +0800 Subject: [PATCH 2/2] update selinux-policy.spec. --- selinux-policy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index c375a68..a33c319 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/ @@ -732,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 -- Gitee