mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
21 lines
291 B
Text
21 lines
291 B
Text
#=DESCRIPTION conditional else in invlaid 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,
|
|
}
|
|
|
|
}
|