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

« back to all changes in this revision

Viewing changes to tests/regression/subdomain/for-mainline/link_perms.patch

  • 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
 
Index: subdomain/link.sh
2
 
===================================================================
3
 
--- subdomain.orig/link.sh
4
 
+++ subdomain/link.sh
5
 
@@ -49,16 +49,33 @@ rm -f $target
6
 
 genprofile $src:r $target:rl
7
 
 runchecktest "MATCHING PERM (r)" pass $src $target
8
 
 
9
 
-# FAILURE TEST
10
 
+# FAILURE TEST  ???
11
 
 
12
 
 rm -f $target
13
 
 
14
 
 genprofile $src:$okperm $target:$badperm
15
 
-runchecktest "NONMATCHING PERM" fail $src $target
16
 
+runchecktest "NONMATCHING PERM" pass $src $target
17
 
 
18
 
-# NOLINK TEST
19
 
+# NOLINK TEST ???
20
 
 
21
 
 rm -f $target
22
 
 
23
 
 genprofile $src:$okperm $target:$nolinkperm
24
 
-runchecktest "NOLINK PERM" fail $src $target
25
 
+runchecktest "NOLINK PERM" pass $src $target
26
 
+
27
 
+# LINK to readonly
28
 
+rm -rf $target
29
 
+
30
 
+genprofile $src:r $target:rl
31
 
+runchecktest "LINK RO" pass $src $target
32
 
+
33
 
+rm -rf $target
34
 
+
35
 
+genprofile $src:r $target:rw
36
 
+runchecktest "LINK RO -> RW" pass $src $target
37
 
+
38
 
+rm -rf $target
39
 
+
40
 
+genprofile $src:r $target:r
41
 
+runchecktest "LINK RO (fail)" fail $src $target
42
 
+