summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2012-05-31 13:59:33 +0200
committerMartin Kosek <mkosek@redhat.com>2012-05-31 14:07:05 +0200
commit9e877585e213a9fccec8ff9b3dcb876b2ec65696 (patch)
treeea25cb0bb60302b5f2564685539ea1bdcd5b974a /ipa-client
parent5b465811ce15e26d4c05c589601eebee1b9e984d (diff)
downloadfreeipa.git-9e877585e213a9fccec8ff9b3dcb876b2ec65696.tar.gz
freeipa.git-9e877585e213a9fccec8ff9b3dcb876b2ec65696.tar.xz
freeipa.git-9e877585e213a9fccec8ff9b3dcb876b2ec65696.zip
If SELinux is enabled ensure we also have restorecon.
We don't have a specific requires on the policycoreutils package. It gets pulled in as a dependency on the server anyway, but checking there is like a belt and suspenders. On the client we don't require SELinux at all. If SELinux is enabled however we need to set things up properly. This is provided by the policycoreutils package so fail if that isn't available. https://fedorahosted.org/freeipa/ticket/2368
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 4fc4449d..afc332a9 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -1539,6 +1539,7 @@ def main():
if not os.getegid() == 0:
sys.exit("\nYou must be root to run ipa-client-install.\n")
+ ipaservices.check_selinux_status()
logging_setup(options)
root_logger.debug('%s was invoked with options: %s' % (sys.argv[0], safe_options))
root_logger.debug("missing options might be asked for interactively later\n")