run 'restorecon' on swtpm in post to get SELinux label on first install

This commit is contained in:
Stefan Berger 2019-08-13 10:44:26 -04:00
parent 9927fe3909
commit 5e617741b1
2 changed files with 7 additions and 4 deletions

View File

@ -1,2 +1 @@
SHA512 (swtpm.spec) = 893322eda4ab47be4a21682941a552c5361e732ee499c4e94c1a54d8602d3d35e91ab56d71a7ef3c24f2f5f1c31aeff36d662a03c0ddde8cec8f81f2ff8d23b6
SHA512 (swtpm-13536aa.tar.gz) = aad9746266a8a38d415431045aaf6b1d8b0d4e1890efa048d6cbaba095bba807cb55ea2b705904058ab2fb9b89fd2d168c042f976abe6b11e8e9e18c91981a58
SHA512 (swtpm.spec) = 7ad9037adb0f88eb196bb17633c9c29672fba13fe507176467b71d961a8df419ec7c0d51a189c5a3151f78cd33a29ba1202a3407c18b01607886ad4be49d242e

View File

@ -12,7 +12,7 @@
Summary: TPM Emulator
Name: swtpm
Version: 0.2.0
Release: 3.%{gitdate}git%{gitshortcommit}%{?dist}
Release: 4.%{gitdate}git%{gitshortcommit}%{?dist}
License: BSD
Url: http://github.com/stefanberger/swtpm
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
@ -103,6 +103,7 @@ for pp in /usr/share/selinux/packages/swtpm.pp \
/usr/share/selinux/packages/swtpm_svirt.pp; do
%selinux_modules_install -s %{selinuxtype} ${pp}
done
restorecon %{_bindir}/swtpm
%postun
if [ $1 -eq 0 ]; then
@ -164,7 +165,10 @@ fi
%attr( 755, tss, tss) %{_localstatedir}/lib/swtpm-localca
%changelog
* Fri Aug 01 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.2.0-3.20190801git13536aa
* Tue Aug 13 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.2.0-4.20190801git13536aa
- run 'restorecon' on swtpm in post to get SELinux label on first install
* Thu Aug 01 2019 Stefan Berger <stefanb@linux.ibm.com> - 0.2.0-3.20190801git13536aa
- follow stable-0.2.0 branch with some bug fixes
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2.20190723gitf0b4137