Fix locallist (-lC) functionality for semanage node.

This commit is contained in:
Stephen Smalley 2008-08-26 09:36:09 -04:00
parent 4611c09d6b
commit 55fe3dbba5
1 changed files with 1 additions and 1 deletions

View File

@ -1242,7 +1242,7 @@ class nodeRecords(semanageRecords):
def list(self, heading = 1, locallist = 0): def list(self, heading = 1, locallist = 0):
if heading: if heading:
print "%-18s %-18s %-5s %-5s\n" % ("IP Address", "Netmask", "Protocol", "Context") print "%-18s %-18s %-5s %-5s\n" % ("IP Address", "Netmask", "Protocol", "Context")
ddict = self.get_all() ddict = self.get_all(locallist)
keys = ddict.keys() keys = ddict.keys()
keys.sort() keys.sort()
if is_mls_enabled: if is_mls_enabled: