mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
27 lines
336 B
Text
27 lines
336 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/true rix,
|
|
} else {
|
|
if not ${FALSE} {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
}
|
|
}
|