mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 17:01:00 +01:00
26 lines
332 B
Text
26 lines
332 B
Text
# taken from cond52.sd
|
|
#=DESCRIPTION hat defined in if and else clauses
|
|
#=EXRESULT PASS
|
|
|
|
$FOO=true
|
|
|
|
/bin/true {
|
|
if $FOO {
|
|
^TRUE {
|
|
/bin/true rix,
|
|
}
|
|
} else {
|
|
^TRUE {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
if not $FOO {
|
|
^FALSE {
|
|
/bin/true rix,
|
|
}
|
|
} else {
|
|
^FALSE {
|
|
/bin/false rix,
|
|
}
|
|
}
|
|
}
|