mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
17 lines
236 B
Text
17 lines
236 B
Text
#=DESCRIPTION basic conditional statements w/file rules
|
|
#=EXRESULT PASS
|
|
|
|
$FOO=true
|
|
$BAR = False
|
|
|
|
/bin/true {
|
|
/bin/false rix,
|
|
if ${FOO} {
|
|
/bin/true rix,
|
|
}
|
|
/bin/true rix,
|
|
if ${BAR} {
|
|
/etc/shadow rw,
|
|
}
|
|
/bin/sh rix,
|
|
}
|