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.
This commit is contained in:
Alexander Bokovoy 2012-03-22 15:18:01 +02:00
parent 2d460003b9
commit f6077c46b3

View File

@ -129,8 +129,10 @@ class HTTPInstance(service.Service):
# together so it is speedier. # together so it is speedier.
if vars: if vars:
bools = [var + "=true" for var in vars] bools = [var + "=true" for var in vars]
args = ["/usr/sbin/setsebool", "-P"]
args.extend(bools);
try: try:
ipautil.run(["/usr/sbin/setsebool", "-P", ' '.join(bools)]) ipautil.run(args)
except: except:
self.print_msg(selinux_warning % dict(var=','.join(vars))) self.print_msg(selinux_warning % dict(var=','.join(vars)))