policycoreutils: semanage: fix moduleRecords deleteall method

commit 2ff279e21e ("policycoreutils:
 semanage: update to new source policy infrastructure") introduced
new methods for enabling/disabling modules but failed to update
the deleteall method of class moduleRecords to use the new method.
The deleteall method was introduced by commit
3dafb1046d ("Add deleteall customizations
field for modules.") as a way to re-enable all locally disabled modules.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
Stephen Smalley 2015-07-22 09:59:35 -04:00
parent 5ee1befee4
commit 4031618396

View File

@ -378,7 +378,7 @@ class moduleRecords(semanageRecords):
def deleteall(self):
l = map(lambda x: x[0], filter(lambda t: t[1] == 0, self.get_all()))
for m in l:
self.enable(m)
self.set_enabled(m, True)
class dontauditClass(semanageRecords):
def __init__(self, store):