mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 17:01:00 +01:00
20 lines
318 B
Text
20 lines
318 B
Text
#=DESCRIPTION Conditional tests with 'defined' keyword
|
|
#=EXRESULT PASS
|
|
|
|
@FOO = ""
|
|
|
|
/bin/true {
|
|
if not defined @BAR {
|
|
/bin/true rix,
|
|
}
|
|
if not defined @FOO {
|
|
/bin/false rix,
|
|
}
|
|
if not not defined @FOO {
|
|
/usr/bin/true rix,
|
|
}
|
|
if not not defined @BAR {
|
|
/usr/bin/false rix,
|
|
}
|
|
/dev/null r,
|
|
}
|