mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Fix up some more pyflakes issues with the tools
This commit is contained in:
@@ -155,8 +155,8 @@ while not done_profiling:
|
|||||||
|
|
||||||
for p in sorted(apparmor.helpers.keys()):
|
for p in sorted(apparmor.helpers.keys()):
|
||||||
if apparmor.helpers[p] == 'enforce':
|
if apparmor.helpers[p] == 'enforce':
|
||||||
enforce(p)
|
apparmor.enforce(p)
|
||||||
reload(p)
|
apparmor.reload(p)
|
||||||
|
|
||||||
apparmor.UI_Info(_('\nReloaded AppArmor profiles in enforce mode.'))
|
apparmor.UI_Info(_('\nReloaded AppArmor profiles in enforce mode.'))
|
||||||
apparmor.UI_Info(_('\nPlease consider contributing your new profile!\nSee the following wiki page for more information:')+'\nhttp://wiki.apparmor.net/index.php/Profiles\n')
|
apparmor.UI_Info(_('\nPlease consider contributing your new profile!\nSee the following wiki page for more information:')+'\nhttp://wiki.apparmor.net/index.php/Profiles\n')
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#
|
#
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import re
|
||||||
|
|
||||||
import apparmor.aa
|
import apparmor.aa
|
||||||
import apparmor.aamode
|
import apparmor.aamode
|
||||||
@@ -492,7 +492,7 @@ class Merge(object):
|
|||||||
if match:
|
if match:
|
||||||
inc = match
|
inc = match
|
||||||
deleted = 0
|
deleted = 0
|
||||||
deleted = apparmor.aa.delete_duplicates(aa[profile][hat], inc)
|
deleted = apparmor.aa.delete_duplicates(self.user.aa[profile][hat], inc)
|
||||||
self.user.aa[profile][hat]['include'][inc] = True
|
self.user.aa[profile][hat]['include'][inc] = True
|
||||||
apparmor.aa.changed[profile] = True
|
apparmor.aa.changed[profile] = True
|
||||||
apparmor.aa.UI_Info(_('Adding %s to profile.') % path)
|
apparmor.aa.UI_Info(_('Adding %s to profile.') % path)
|
||||||
|
Reference in New Issue
Block a user