[icinga-checkins] icinga.org: icinga2/feature/incremental-ido-updates-12435: Mute chcon during safe-reload

git at icinga.org git at icinga.org
Mon Aug 15 14:42:49 CEST 2016


Module: icinga2
Branch: feature/incremental-ido-updates-12435
Commit: bc06ff18e51f2cc43f8842de5748fc7b53c26393
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=bc06ff18e51f2cc43f8842de5748fc7b53c26393

Author: Dirk Goetz <dirk.goetz at netways.de>
Date:   Mon Aug 15 13:15:56 2016 +0200

Mute chcon during safe-reload

Removes the error message on systems with SELinux enabled but without icinga2 policy.

fixes #11648

---

 etc/initsystem/safe-reload |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/initsystem/safe-reload b/etc/initsystem/safe-reload
index afacc9e..2fd44b7 100644
--- a/etc/initsystem/safe-reload
+++ b/etc/initsystem/safe-reload
@@ -14,7 +14,7 @@ OUTPUTFILE=`mktemp`
 
 if type selinuxenabled >/dev/null 2>&1; then
 	if selinuxenabled; then
-		chcon -t icinga2_tmp_t $OUTPUTFILE
+		chcon -t icinga2_tmp_t $OUTPUTFILE >/dev/null 2>&1
 	fi
 fi
 



More information about the icinga-checkins mailing list