Fix bug in semanage fcontext
PATCH 1/1 Fix bug in semanage fcontext
Apparently I failed to split out the whitespace changes from a previous patchset, and a bit of the equivalence patch of the day snuck in. This causes a stack trace when you execute semanage fcontext -l. This patch reverts the accidentally included code.
Signed-off-by Chad Sellers <[email protected]>
--- policycoreutils/semanage/seobject.py | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
policycoreutils/semanage/seobject.py +0 -6
@@ -1575,12 +1575,6 @@ class fcontextRecords(semanageRecords): print "%-50s %-18s %s:%s:%s " % (k[0], k[1], fcon_dict[k][0], fcon_dict[k][1],fcon_dict[k][2]) else: print "%-50s %-18s <<None>>" % (k[0], k[1]) - if len(self.equiv.keys()) > 0: - if heading: - print _("\nSELinux fcontext Equivalence \n") - - for src in self.equiv.keys(): - print "%s == %s" % (src, self.equiv[src]) class booleanRecords(semanageRecords): def __init__(self, store = ""):
Signature · 7 lines
1.6.2.5 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.