mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Merge hat parsing into ProfileStorage.parse()
... and into parse_profile_start_line() (which is used by ProfileStorage.parse()). With this change, the section handling RE_PROFILE_HAT_DEF in parse_profile_data() becomes superfluous. A nice side effect is that two simple_tests parse failures get accidently ;-) fixed.
This commit is contained in:
@@ -141,7 +141,6 @@ exception_not_raised = [
|
||||
'profile/flags/flags_bad44.sd',
|
||||
'profile/flags/flags_bad45.sd',
|
||||
'profile/flags/flags_bad46.sd',
|
||||
'profile/simple_bad_no_close_brace4.sd',
|
||||
'profile/profile_ns_bad8.sd', # 'profile :ns/t' without terminating ':'
|
||||
'ptrace/bad_05.sd', # actually contains a capability rule with invalid (ptrace-related) keyword
|
||||
'ptrace/bad_06.sd', # actually contains a capability rule with invalid (ptrace-related) keyword
|
||||
@@ -306,9 +305,6 @@ syntax_failure = [
|
||||
# missing profile keywords
|
||||
'profile/re_named_ok2.sd',
|
||||
|
||||
# Syntax Error: Unexpected hat definition found (external hat)
|
||||
'change_hat/new_style4.sd',
|
||||
|
||||
# Syntax Errors caused by boolean conditions (parse_profile_data() gets confused by the closing '}')
|
||||
'conditional/defined_1.sd',
|
||||
'conditional/defined_2.sd',
|
||||
|
Reference in New Issue
Block a user