diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2012-03-22 15:18:01 +0200 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2012-03-23 10:19:32 +0200 |
commit | 5e08fa6efd9edfef875154300e427765b0a009a9 (patch) | |
tree | 159562c99565c45ca450cd242f8498d4165f1395 /ipaserver | |
parent | 112c4b745651beea993a8f87529a5eecfdb31062 (diff) | |
download | freeipa.git-5e08fa6efd9edfef875154300e427765b0a009a9.tar.gz freeipa.git-5e08fa6efd9edfef875154300e427765b0a009a9.tar.xz freeipa.git-5e08fa6efd9edfef875154300e427765b0a009a9.zip |
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.
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/httpinstance.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py index 60d5604c..e46d4ed5 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))) |