mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Add parser tests for empty flags (which result in "syntax error")
Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
9
parser/tst/simple_tests/profile/flags/flags_bad16.sd
Normal file
9
parser/tst/simple_tests/profile/flags/flags_bad16.sd
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
#=DESCRIPTION Ensure empty flags fail
|
||||
#=EXRESULT FAIL
|
||||
# vim:syntax=apparmor
|
||||
#
|
||||
/does/not/exist flags=() {
|
||||
|
||||
/does/not/exist r,
|
||||
}
|
9
parser/tst/simple_tests/profile/flags/flags_bad17.sd
Normal file
9
parser/tst/simple_tests/profile/flags/flags_bad17.sd
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
#=DESCRIPTION Ensure empty (whitespace-only) flags fail
|
||||
#=EXRESULT FAIL
|
||||
# vim:syntax=apparmor
|
||||
#
|
||||
/does/not/exist ( ) {
|
||||
|
||||
/does/not/exist r,
|
||||
}
|
Reference in New Issue
Block a user