diff --git a/SPECS/container-selinux.spec b/SPECS/container-selinux.spec index 679209f..be25f7b 100644 --- a/SPECS/container-selinux.spec +++ b/SPECS/container-selinux.spec @@ -25,7 +25,7 @@ Name: container-selinux Epoch: 2 Version: 2.107 -Release: 1%{?dist} +Release: 3%{?dist} License: GPLv2 URL: %{git0} Summary: SELinux policies for container runtimes @@ -87,11 +87,16 @@ fi %{_sbindir}/semodule -n -s %{selinuxtype} -d docker 2> /dev/null %{_sbindir}/semodule -n -s %{selinuxtype} -d gear 2> /dev/null %{_sbindir}/semodule -n -X 200 -s %{selinuxtype} -i $MODULES > /dev/null +if [ $? -ne 0 ]; then + echo "Error loading SELinux module." >&2 + return 1 +fi + if %{_sbindir}/selinuxenabled ; then %{_sbindir}/load_policy %relabel_files if [ $1 -eq 1 ]; then - restorecon -R %{_sharedstatedir}/docker &> /dev/null || : + restorecon -R %{_sharedstatedir}/docker &> /dev/null || : fi fi . %{_sysconfdir}/selinux/config @@ -115,6 +120,13 @@ fi %{_datadir}/selinux/* %changelog +* Fri Aug 02 2019 Jindrich Novy - 2:2.107-3 +- use 2.107 in RHEL7u7 +- add build.sh script + +* Thu Jul 11 2019 Lokesh Mandvekar - 2:2.107-2 +- Resolves: #1626215 + * Mon Jun 24 2019 Lokesh Mandvekar - 2:2.107-1 - bump to v2.107