2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-04 00:05:14 +00:00

utils: tests: Update the utils tests for the two cases they don't handle

- the autovars not being defined because the profile doesn't have an
  attachment

- the autovar conflicting with a user defined var of the same name

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2025-05-07 20:34:31 -07:00
parent fba1ced1bc
commit ee3b5d746f
2 changed files with 13 additions and 1 deletions

View File

@@ -35,6 +35,18 @@ skip_startswith = (
# Pux and Cux (which actually mean PUx and CUx) get rejected by the tools
'generated_x/exact-',
# profiles that use undefined autovars like @{exec_path} when no attachment
'vars/vars_auto_exec_path_bad_2.sd',
'vars/vars_auto_attach_path_bad_2.sd',
'vars/vars_auto_exec_path_bad_3.sd',
'vars/vars_auto_attach_path_bad_3.sd',
'vars/vars_auto_exec_path_bad_5.sd',
'vars/vars_auto_attach_path_bad_5.sd',
# profiles that define an autovar that then gets defined causing a conflict
'vars/vars_auto_exec_path_bad_4.sd',
'vars/vars_auto_attach_path_bad_4.sd',
)
# testcases that should raise an exception, but don't