From 5e08fa6efd9edfef875154300e427765b0a009a9 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mar 23 2012 08:19:32 +0000 Subject: When changing multiple booleans with setsebool, pass each of them separately. Fixes SELinux configuration for ipa-server-install with selinux-policy 3.10.0-104.fc17. --- diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py index 60d5604..e46d4ed 100644 --- a/ipaserver/install/httpinstance.py +++ b/ipaserver/install/httpinstance.py @@ -129,8 +129,10 @@ class HTTPInstance(service.Service): # together so it is speedier. if vars: bools = [var + "=true" for var in vars] + args = ["/usr/sbin/setsebool", "-P"] + args.extend(bools); try: - ipautil.run(["/usr/sbin/setsebool", "-P", ' '.join(bools)]) + ipautil.run(args) except: self.print_msg(selinux_warning % dict(var=','.join(vars)))