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:
Dan Walsh 2012-04-30 15:03:16 -04:00 committed by Eric Paris
parent c48b7fe336
commit cf87e75d45
1 changed files with 4 additions and 0 deletions

View File

@ -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 ):