Home | History | Annotate | Download | only in test
      1 (class CLASS (PERM))
      2 (classorder (CLASS))
      3 (sid SID)
      4 (sidorder (SID))
      5 (user USER)
      6 (role ROLE)
      7 (type TYPE)
      8 (category CAT)
      9 (categoryorder (CAT))
     10 (sensitivity SENS)
     11 (sensitivityorder (SENS))
     12 (sensitivitycategory SENS (CAT))
     13 (allow TYPE self (CLASS (PERM)))
     14 (roletype ROLE TYPE)
     15 (userrole USER ROLE)
     16 (userlevel USER (SENS))
     17 (userrange USER ((SENS)(SENS (CAT))))
     18 (sidcontext SID (USER ROLE TYPE ((SENS)(SENS))))
     19 
     20 (class c1 (p1a p1b p1c))
     21 (class c2 (p2a p2b p2c))
     22 (class c3 (p3a p3b p3c))
     23 
     24 (classorder (CLASS c1 c2 c3))
     25 
     26 (classpermission cp1)
     27 (classpermissionset cp1 (c1 (p1a p1b)))
     28 (classpermissionset cp1 (c2 (p2a)))
     29 
     30 (classmap cm1 (mp1))
     31 (classmapping cm1 mp1
     32 	      (c1 (p1a)))
     33 
     34 (type t1)
     35 (type t2)
     36 (type t3)
     37 (type t4)
     38 (type t5)
     39 (type t6)
     40 (type t7)
     41 
     42 (typeattribute a1)
     43 (typeattribute a2)
     44 (typeattribute a3)
     45 (typeattribute a4)
     46 (typeattribute a5)
     47 (typeattribute a6)
     48 
     49 (typeattributeset a1 (t1 t2 t3 t4 t5))
     50 (typeattributeset a2 (t1 t2))
     51 (typeattributeset a3 (t3 t4))
     52 (typeattributeset a4 (t2 t3))
     53 (typeattributeset a5 (t5 t6))
     54 (typeattributeset a6 (t6 t7))
     55 
     56 (neverallow t1 t2 (c1 (p1a p1b)))
     57 (allow t1 t2 (c1 (p1a)))
     58 
     59 (neverallow t3 t4 (cm1 (mp1)))
     60 (allow t3 t4 (c1 (p1a)))
     61 
     62 (neverallow t5 t6 cp1)
     63 (allow t5 t6 (c1 (p1b)))
     64 (allow t5 t6 (c2 (p2a)))
     65 
     66 (neverallow a1 self (CLASS (PERM)))
     67 (allow t1 t1 (CLASS (PERM)))
     68 (allow t2 self (CLASS (PERM)))
     69 (allow a3 self (CLASS (PERM)))
     70 (allow a2 a4 (CLASS (PERM)))
     71 
     72 (neverallow a5 a6 (CLASS (PERM)))
     73 (allow t5 t7 (CLASS (PERM)))
     74 (allow t6 self (CLASS (PERM)))
     75 
     76 ;; Should not call these violations
     77 (allow a1 self (c1 (p1a)))
     78 (allow a2 a3 (CLASS (PERM)))
     79 (allow t5 t6 (c2 (p2b)))
     80