policycoreutils: semanage: fix moduleRecords deleteall method
commit2ff279e21e
("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 commit3dafb1046d
("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:
parent
5ee1befee4
commit
4031618396
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue