mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
23 lines
300 B
Text
23 lines
300 B
Text
#=DESCRIPTION conditional else
|
|
#=EXRESULT PASS
|
|
|
|
$FOO=true
|
|
$FALSE = false
|
|
|
|
/bin/true {
|
|
^TRUE {
|
|
if $FOO {
|
|
/bin/true rix,
|
|
} else if $FALSE {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
|
|
^FALSE {
|
|
if not $FOO {
|
|
/bin/false rix,
|
|
} else if not ${FALSE} {
|
|
/bin/true rix,
|
|
}
|
|
}
|
|
}
|