From 0bbda1a879fe4ddd701822fc397a15982582d442 Mon Sep 17 00:00:00 2001 From: Lukas Vrabec Date: Mon, 30 Apr 2018 10:55:31 +0200 Subject: [PATCH] Redirect also stdout to /dev/null to avoid printing anything during updating selinux-policy process --- selinux-policy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 820b13a8..c8e0a449 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -276,7 +276,7 @@ rm -f %{buildroot}%{_sharedstatedir}/selinux/%1/active/*.linked \ FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \ /usr/sbin/selinuxenabled; \ if [ $? = 0 -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \ - /sbin/fixfiles -C ${FILE_CONTEXT}.pre restore 2> /dev/null > /dev/null; \ + /sbin/fixfiles -C ${FILE_CONTEXT}.pre restore &> /dev/null > /dev/null; \ rm -f ${FILE_CONTEXT}.pre; \ fi; \ if /sbin/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null;then \