mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-13 08:50:53 +00:00
Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: policycoreutils patch Date: Thu, 23 Oct 2008 13:15:11 -0400 Change semange fcontext -a to check for local customizations rather then global, so you can modify a file context. Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
parent
cb69455465
commit
dd808a1342
@ -1430,7 +1430,7 @@ class fcontextRecords(semanageRecords):
|
||||
if rc < 0:
|
||||
raise ValueError(_("Could not create key for %s") % target)
|
||||
|
||||
(rc,exists) = semanage_fcontext_exists(self.sh, k)
|
||||
(rc,exists) = semanage_fcontext_exists_local(self.sh, k)
|
||||
if rc < 0:
|
||||
raise ValueError(_("Could not check if file context for %s is defined") % target)
|
||||
if exists:
|
||||
|
Loading…
Reference in New Issue
Block a user