diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-29 14:47:17 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:20 +0200 |
commit | 4d2ef43f287aa96df3d65b97977fc7a824b6b33c (patch) | |
tree | 4adba8f39e1f874c89a73993d6a6455b649b7bb9 /ipapython/platform/fedora16/selinux.py | |
parent | c7edd7b68c98d105f02a5977a0ff7c2a3081f2c9 (diff) | |
download | freeipa-4d2ef43f287aa96df3d65b97977fc7a824b6b33c.tar.gz freeipa-4d2ef43f287aa96df3d65b97977fc7a824b6b33c.tar.xz freeipa-4d2ef43f287aa96df3d65b97977fc7a824b6b33c.zip |
ipaplatform: Move all filesystem paths to ipaplatform.paths module
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipapython/platform/fedora16/selinux.py')
-rw-r--r-- | ipapython/platform/fedora16/selinux.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipapython/platform/fedora16/selinux.py b/ipapython/platform/fedora16/selinux.py index cf71a38e4..4ecafdc5e 100644 --- a/ipapython/platform/fedora16/selinux.py +++ b/ipapython/platform/fedora16/selinux.py @@ -1,4 +1,5 @@ # Author: Alexander Bokovoy <abokovoy@redhat.com> +from ipaplatform.paths import paths # # Copyright (C) 2011 Red Hat # see file 'COPYING' for use and warranty information @@ -19,8 +20,8 @@ from ipapython.platform import redhat -def restore_context(filepath, restorecon='/usr/sbin/restorecon'): +def restore_context(filepath, restorecon=paths.RESTORECON): return redhat.restore_context(filepath, restorecon) -def check_selinux_status(restorecon='/usr/sbin/restorecon'): +def check_selinux_status(restorecon=paths.RESTORECON): return redhat.check_selinux_status(restorecon) |