~apparmor-dev/apparmor/master

« back to all changes in this revision

Viewing changes to parser/tst/simple_tests/conditional/ok_8.sd

  • Committer: Steve Beattie
  • Date: 2019-02-19 09:38:13 UTC
  • Revision ID: sbeattie@ubuntu.com-20190219093813-ud526ee6hwn8nljz
The AppArmor project has been converted to git and is now hosted on
gitlab.

To get the converted repository, please do
  git clone https://gitlab.com/apparmor/apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#=DESCRIPTION basic conditional statements w/hats
2
 
#=EXRESULT PASS
3
 
 
4
 
$FOO= false
5
 
$BAR = False
6
 
 
7
 
/bin/true {
8
 
  /bin/false rix,
9
 
  capability net_raw,
10
 
  ^hat1 {
11
 
    /usr/bin/sendmail rix,
12
 
  }
13
 
  if ${FOO} {
14
 
    ^hat1 {
15
 
      /usr/bin/sendmail rux,
16
 
    }
17
 
  }
18
 
  /bin/true rix,
19
 
  /bin/sh rix,
20
 
  capability dac_override,
21
 
}