From 4d2ef43f287aa96df3d65b97977fc7a824b6b33c Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 29 May 2014 14:47:17 +0200 Subject: ipaplatform: Move all filesystem paths to ipaplatform.paths module https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin --- ipapython/platform/fedora16/selinux.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ipapython/platform/fedora16/selinux.py') 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 +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) -- cgit