mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
23 lines
294 B
Text
23 lines
294 B
Text
# taken from codn54.sd
|
|
#=DESCRIPTION conditional within hat scope
|
|
#=EXRESULT PASS
|
|
|
|
$FOO=true
|
|
|
|
/bin/true {
|
|
^TRUE {
|
|
if $FOO {
|
|
/bin/true rix,
|
|
} else {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
|
|
^FALSE {
|
|
if not $FOO {
|
|
/bin/true rix,
|
|
} else {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
}
|