From cfa5d8310e274a5384dce8fb98024d9fefd4b255 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Aug 27 2018 13:14:56 +0000 Subject: Fix restorecon to not error on missing directory --- diff --git a/container-selinux.spec b/container-selinux.spec index 5b9a90f..be54c4e 100644 --- a/container-selinux.spec +++ b/container-selinux.spec @@ -37,7 +37,7 @@ Name: container-selinux Epoch: 2 %endif Version: 2.71 -Release: 1.git%{shortcommit0}%{?dist} +Release: 2.git%{shortcommit0}%{?dist} License: GPLv2 URL: %{git0} Summary: SELinux policies for container runtimes @@ -114,7 +114,7 @@ if %{_sbindir}/selinuxenabled ; then fi . %{_sysconfdir}/selinux/config sed -e "\|container_file_t|h; \${x;s|container_file_t||;{g;t};a\\" -e "container_file_t" -e "}" -i /etc/selinux/${SELINUXTYPE}/contexts/customizable_types -matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R -v %{_sharedstatedir}/containers &> /dev/null +matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R %{_sharedstatedir}/containers &> /dev/null || : %postun if [ $1 -eq 0 ]; then @@ -133,6 +133,9 @@ fi %{_datadir}/selinux/* %changelog +* Mon Aug 27 2018 Dan Walsh - 2.71-2 +- Fix restorecon to not error on missing directory + * Wed Aug 22 2018 Dan Walsh - 2.71-1 - Allow unconfined_r to transition to system_r over container_runtime_exec_t - Allow unconfined_t to transition to container_runtime_t over container_runtime_exec_t