mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
With the exception of the documentation fixes, these should all be invisible to users. Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Acked-by: Christian Boltz <apparmor@cboltz.de> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/687
22 lines
291 B
Plaintext
22 lines
291 B
Plaintext
#=DESCRIPTION conditional else in invalid locations
|
|
#=EXRESULT FAIL
|
|
|
|
$BAR = false
|
|
$FOO=true
|
|
$FALSE = false
|
|
|
|
/bin/true {
|
|
^TRUE {
|
|
if $FOO {
|
|
/bin/true rix,
|
|
} else if $FALSE {
|
|
/bin/false rix,
|
|
} else if $BAR {
|
|
/dev/null r,
|
|
}
|
|
} else {
|
|
/dev/null w,
|
|
}
|
|
|
|
}
|