apparmor/tests/regression/subdomain/for-mainline/chdir.patch
John Johansen a0efe08a97 Add patches to update new tests and deal with the new directory behavior
which doesn't automatically mask of MAY_WRITE in inode_permission.

openat.patch - comment of o_creat bug, remove exit before last test
chdir.patch - add trailing /, give profile read permission to the directory
access.patch - give profile dir read permissions, update test rwx (r) to
              fail since w - perm is no longer masked off.
2007-05-02 22:35:33 +00:00

20 lines
449 B
Diff

Index: subdomain/fchdir.sh
===================================================================
--- subdomain.orig/fchdir.sh
+++ subdomain/fchdir.sh
@@ -22,7 +22,7 @@ bin=$pwd
. $bin/prologue.inc
-dir=$tmpdir/tmpdir
+dir=$tmpdir/tmpdir/
mkdir $dir
@@ -32,5 +32,5 @@ mkdir $dir
runchecktest "FCHDIR/no profile" pass $dir
# null profile, verify fchdir (x) functions
-genprofile
+genprofile $dir:r
runchecktest "FCHDIR/profile" pass $dir