From f6077c46b373cdd9dbc1c7618d067921df0cedb0 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 22 Mar 2012 15:18:01 +0200 Subject: [PATCH] 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. --- ipaserver/install/httpinstance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py index 60d5604c3..e46d4ed5a 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)))