~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

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=true
 
5
$BAR = False
 
6
 
 
7
/bin/true {
 
8
  /bin/false rix,
 
9
  capability net_raw,
 
10
  if ${FOO} {
 
11
    capability ipc_lock,
 
12
    ^hat1 {
 
13
      /usr/bin/sendmail rix,
 
14
      if not $BAR {
 
15
        /usr/sbin/sshd rix,
 
16
      }
 
17
    }
 
18
  }
 
19
  /bin/true rix,
 
20
  if ${BAR} {
 
21
    capability sys_admin,
 
22
    /etc/shadow rw,
 
23
    ^hat2 {
 
24
      /usr/bin/passwd rix,
 
25
    }
 
26
  }
 
27
  /bin/sh rix,
 
28
  capability dac_override,
 
29
  ^hat3 {
 
30
    /tmp/** rw,
 
31
  }
 
32
}