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