mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-11 07:18:15 +00:00
PermissionMap: Make permission maps iterable.
This commit is contained in:
parent
e9332819d2
commit
b5647e2129
@ -68,6 +68,11 @@ class PermissionMap(object):
|
|||||||
memo[id(self)] = newobj
|
memo[id(self)] = newobj
|
||||||
return newobj
|
return newobj
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
for cls in self.classes():
|
||||||
|
for mapping in self.perms(cls):
|
||||||
|
yield mapping
|
||||||
|
|
||||||
def load(self, permmapfile):
|
def load(self, permmapfile):
|
||||||
"""
|
"""
|
||||||
Parameter:
|
Parameter:
|
||||||
|
Loading…
Reference in New Issue
Block a user