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 <xingchaochao@huawei.com>
This commit is contained in:
parent
3bf960771a
commit
f217c74a57
@ -12,7 +12,7 @@
|
|||||||
Summary: TPM Emulator
|
Summary: TPM Emulator
|
||||||
Name: swtpm
|
Name: swtpm
|
||||||
Version: 0.3.3
|
Version: 0.3.3
|
||||||
Release: 2
|
Release: 3
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: http://github.com/stefanberger/swtpm
|
Url: http://github.com/stefanberger/swtpm
|
||||||
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
|
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
|
||||||
@ -75,6 +75,7 @@ Tools for the TPM emulator from the swtpm package
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{gitcommit}
|
%autosetup -n %{name}-%{gitcommit}
|
||||||
|
%selinux_relabel_pre -s %{selinuxtype}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -163,6 +164,9 @@ fi
|
|||||||
%attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca
|
%attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 16 2021 imxcc <xingchaochao@huawei.com> - 0.3.3-3
|
||||||
|
- add selinux_relabel_pre
|
||||||
|
|
||||||
* Tue Sep 15 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.3.3-2
|
* Tue Sep 15 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.3.3-2
|
||||||
- update spec file and disable test case pkcs11
|
- update spec file and disable test case pkcs11
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user