From 0d2d9e55f5373caecde7d32dac46d13a54e1c38a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 4 Dec 2007 09:31:40 -0500 Subject: [PATCH] Quiet down the selinux check. --- pungi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pungi b/pungi index 063cbf5b..feada29a 100755 --- a/pungi +++ b/pungi @@ -34,7 +34,9 @@ def main(): if opts.do_all or opts.do_buildinstall: try: - selinux = subprocess.Popen('/usr/sbin/getenforce', stdout=subprocess.PIPE).communicate()[0].strip('\n') + selinux = subprocess.Popen('/usr/sbin/getenforce', + stdout=subprocess.PIPE, + stderr=open('/dev/null', 'w')).communicate()[0].strip('\n') if selinux == 'Enforcing': print >> sys.stdout, "WARNING: SELinux is enforcing. This may lead to a compose with selinux disabled." print >> sys.stdout, "Consider running with setenforce 0."