mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Change tabs to spaces in Python files.
This commit is contained in:
@@ -109,12 +109,12 @@ gen_files('service-rules', 'PASS', quantifier, ['bind'], session,
|
||||
gen_files('eavesdrop-rules', 'PASS', quantifier, ['eavesdrop'], session,
|
||||
empty_tup, empty_tup, empty_tup, empty_tup, empty_tup)
|
||||
gen_file('sloppy-formatting', 'PASS', '', '(send , receive )', 'bus=session',
|
||||
'', 'path ="/foo/bar"', 'interface = com.foo', ' member=bar',
|
||||
'peer =( label= /usr/bin/app name ="com.foo")')
|
||||
'', 'path ="/foo/bar"', 'interface = com.foo', ' member=bar',
|
||||
'peer =( label= /usr/bin/app name ="com.foo")')
|
||||
gen_file('sloppy-formatting', 'PASS', '', 'bind', 'bus =session',
|
||||
'name= com.foo', '', '', '', '')
|
||||
'name= com.foo', '', '', '', '')
|
||||
gen_file('sloppy-formatting', 'PASS', '', 'eavesdrop', 'bus = system',
|
||||
'', '', '', '', '')
|
||||
'', '', '', '', '')
|
||||
|
||||
# Don't use the empty element from each array since all empty conditionals would PASS but we want all FAILs
|
||||
msg_perms.remove('')
|
||||
|
@@ -285,8 +285,8 @@ class AppArmorEasyProfile:
|
||||
opt.template and \
|
||||
os.path.isfile(opt.template) and \
|
||||
valid_path(opt.template):
|
||||
# If we specified the template and it is an absolute path, just set
|
||||
# the templates directory to the parent of the template so we don't
|
||||
# If we specified the template and it is an absolute path, just set
|
||||
# the templates directory to the parent of the template so we don't
|
||||
# have to require --template-dir with absolute paths.
|
||||
self.dirs['templates'] = os.path.abspath(os.path.dirname(opt.template))
|
||||
|
||||
|
Reference in New Issue
Block a user