mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-07 01:41:00 +01:00

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.
20 lines
449 B
Diff
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
|