policycoreutils: return equivalency records in fcontext customized
fcontext customized was not returning the customized equivalency records. This patches fixes this. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
c48b7fe336
commit
cf87e75d45
|
@ -1925,6 +1925,10 @@ class fcontextRecords(semanageRecords):
|
|||
for k in keys:
|
||||
if fcon_dict[k]:
|
||||
l.append("-a -f '%s' -t %s '%s'" % (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]))
|
||||
return l
|
||||
|
||||
def list(self, heading = 1, locallist = 0 ):
|
||||
|
|
Loading…
Reference in New Issue