mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
21 lines
312 B
Text
21 lines
312 B
Text
#=DESCRIPTION basic conditional statements w/hats
|
|
#=EXRESULT PASS
|
|
|
|
$FOO= false
|
|
$BAR = False
|
|
|
|
/bin/true {
|
|
/bin/false rix,
|
|
capability net_raw,
|
|
^hat1 {
|
|
/usr/bin/sendmail rix,
|
|
}
|
|
if ${FOO} {
|
|
^hat1 {
|
|
/usr/bin/sendmail rux,
|
|
}
|
|
}
|
|
/bin/true rix,
|
|
/bin/sh rix,
|
|
capability dac_override,
|
|
}
|