From 5e617741b1f0d0a4bfa1241ff709a26f8ce997b4 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 13 Aug 2019 10:44:26 -0400 Subject: [PATCH] run 'restorecon' on swtpm in post to get SELinux label on first install --- sources | 3 +-- swtpm.spec | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 8bcce44..24f7326 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -SHA512 (swtpm.spec) = 893322eda4ab47be4a21682941a552c5361e732ee499c4e94c1a54d8602d3d35e91ab56d71a7ef3c24f2f5f1c31aeff36d662a03c0ddde8cec8f81f2ff8d23b6 -SHA512 (swtpm-13536aa.tar.gz) = aad9746266a8a38d415431045aaf6b1d8b0d4e1890efa048d6cbaba095bba807cb55ea2b705904058ab2fb9b89fd2d168c042f976abe6b11e8e9e18c91981a58 +SHA512 (swtpm.spec) = 7ad9037adb0f88eb196bb17633c9c29672fba13fe507176467b71d961a8df419ec7c0d51a189c5a3151f78cd33a29ba1202a3407c18b01607886ad4be49d242e diff --git a/swtpm.spec b/swtpm.spec index 61c5038..e115efd 100644 --- a/swtpm.spec +++ b/swtpm.spec @@ -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 - 0.2.0-3.20190801git13536aa +* Tue Aug 13 2019 Stefan Berger - 0.2.0-4.20190801git13536aa +- run 'restorecon' on swtpm in post to get SELinux label on first install + +* Thu Aug 01 2019 Stefan Berger - 0.2.0-3.20190801git13536aa - follow stable-0.2.0 branch with some bug fixes * Sat Jul 27 2019 Fedora Release Engineering - 0.2.0-2.20190723gitf0b4137