mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-05 04:59:42 +00:00
Add deleteall customizations field for modules.
Basically if a user asks to delete all module custmization, this will remove all disabled modules.
This commit is contained in:
parent
ffe0052ad8
commit
3dafb1046d
@ -349,6 +349,11 @@ class moduleRecords(semanageRecords):
|
||||
|
||||
self.commit()
|
||||
|
||||
def deleteall(self):
|
||||
l = map(lambda x: x[0], filter(lambda t: t[2] == 0, self.get_all()))
|
||||
for m in l:
|
||||
self.enable(m)
|
||||
|
||||
class dontauditClass(semanageRecords):
|
||||
def __init__(self, store):
|
||||
semanageRecords.__init__(self, store)
|
||||
|
Loading…
Reference in New Issue
Block a user