mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 09:21:00 +01:00
28 lines
336 B
Text
28 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,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|