~ubuntu-branches/ubuntu/oneiric/apparmor/oneiric-security

« back to all changes in this revision

Viewing changes to tests/regression/subdomain/for-mainline/deleted_no_revalidation-pass.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/deleted.sh
2
 
===================================================================
3
 
--- subdomain.orig/deleted.sh
4
 
+++ subdomain/deleted.sh
5
 
@@ -48,10 +48,10 @@ runchecktest "NO CHANGEHAT (access file 
6
 
 
7
 
 # CHANGEHAT TEST - force revalidation using changehat
8
 
 genprofile $file:$okperm hat:$subtest $file:$okperm
9
 
-runchecktest "CHANGEHAT (access file)" pass $subtest $file
10
 
+runchecktest "CHANGEHAT (access file)" fail $subtest $file
11
 
 
12
 
 genprofile "$file2":$okperm hat:$subtest "$file2":$okperm
13
 
-runchecktest "CHANGEHAT (access file (deleted))" pass $subtest "$file2"
14
 
+runchecktest "CHANGEHAT (access file (deleted))" fail $subtest "$file2"
15
 
 
16
 
 # EXEC TEST - force revalidation using a fork exec that inherits the open file
17
 
 #             but uses a different profile
18
 
@@ -99,7 +99,7 @@ rm -f ${socket}
19
 
 # PASS - constrained client, rw access to the file
20
 
 
21
 
 genprofile $file:$okperm $socket:rw $fd_client:px -- image=$fd_client $file:$okperm $socket:rw
22
 
-runchecktest "fd passing; constrained client w/ rw" pass $file $socket $fd_client "delete_file"
23
 
+runchecktest "fd passing; constrained client w/ rw" fail $file $socket $fd_client "delete_file"
24
 
 
25
 
 sleep 1
26
 
 cat > ${file} << EOM