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:
Dan Walsh 2013-10-11 08:55:45 -04:00 committed by Stephen Smalley
parent ffe0052ad8
commit 3dafb1046d

View File

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