mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-20 19:46:53 +00:00
Fix customized of fcontext and booleans to return proper transaction code
This commit is contained in:
parent
6f24fe24f6
commit
417fc54d78
@ -2003,11 +2003,11 @@ class fcontextRecords(semanageRecords):
|
||||
keys.sort()
|
||||
for k in keys:
|
||||
if fcon_dict[k]:
|
||||
l.append("-a -f '%s' -t %s '%s'" % (k[1], fcon_dict[k][2], k[0]))
|
||||
l.append("-a -f %s -t %s '%s'" % (file_type_str_to_option[k[1]], fcon_dict[k][2], k[0]))
|
||||
|
||||
if len(self.equiv):
|
||||
for target in self.equiv.keys():
|
||||
l.append("-a -e %s %s" % (target, self.equiv[target]))
|
||||
l.append("-a -e %s %s" % (self.equiv[target], target))
|
||||
return l
|
||||
|
||||
def list(self, heading = 1, locallist = 0 ):
|
||||
@ -2193,7 +2193,7 @@ class booleanRecords(semanageRecords):
|
||||
keys.sort()
|
||||
for k in keys:
|
||||
if ddict[k]:
|
||||
l.append("-%s %s" % (ddict[k][2], k))
|
||||
l.append("-m -%s %s" % (ddict[k][2], k))
|
||||
return l
|
||||
|
||||
def list(self, heading = True, locallist = False, use_file = False):
|
||||
|
Loading…
Reference in New Issue
Block a user