From f217c74a57210d9b8fdccf36b43ec5ee73c1d91f Mon Sep 17 00:00:00 2001 From: imxcc Date: Tue, 16 Nov 2021 12:05:47 +0800 Subject: [PATCH] add selinux_relabel_pre Add the selinux_relabel_pre macro in the %pre phrase, and the selinux policy can be refreshed when swtpm is installed. Signed-off-by: imxcc --- swtpm.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swtpm.spec b/swtpm.spec index c1ca157..34c5c89 100644 --- a/swtpm.spec +++ b/swtpm.spec @@ -12,7 +12,7 @@ Summary: TPM Emulator Name: swtpm Version: 0.3.3 -Release: 2 +Release: 3 License: BSD Url: http://github.com/stefanberger/swtpm Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz @@ -75,6 +75,7 @@ Tools for the TPM emulator from the swtpm package %prep %autosetup -n %{name}-%{gitcommit} +%selinux_relabel_pre -s %{selinuxtype} %build @@ -163,6 +164,9 @@ fi %attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca %changelog +* Tue Nov 16 2021 imxcc - 0.3.3-3 +- add selinux_relabel_pre + * Tue Sep 15 2020 jiangfangjie - 0.3.3-2 - update spec file and disable test case pkcs11 -- Gitee