apparmor/tests/regression/subdomain/for-mainline/exec_qual.patch
John Johansen 789c323bfe Update patches for mainline branch of AppArmor
- includes patches to handle access to change_hat /proc/<pid>/attr/current
  being a parser rule
- the working updated ptrace patches
- update for the change in sysctl behavior from cap_sys_admin to profile
  entries
2007-04-18 21:00:11 +00:00

21 lines
961 B
Diff

Index: subdomain/exec_qual.sh
===================================================================
--- subdomain.orig/exec_qual.sh
+++ subdomain/exec_qual.sh
@@ -140,11 +140,13 @@ genprofile $test2:ux
local_runchecktest "enforce ux case1" pass "unconstrained" $test2 $file
# constrained parent, exec child with conflicting exec qualifiers
+# that overlap in such away that px is prefered (ix is glob, px is exact
+# match). Other overlap tests should be in the parser.
# case 1:
-# expected behaviour: exec of child fails
+# expected behaviour: exec of child passes
-genprofile $test2_rex1:px $test2_rex2:ix -- image=$test2 $file:$fileperm
-local_runchecktest "enforce conflicting exec qual" fail "n/a" $test2 $file
+genprofile $test2:px $test2_rex1:ix -- image=$test2 $file:$fileperm
+local_runchecktest "enforce conflicting exec qual" pass $test2 $test2 $file
# unconstrained parent
# case 1: child profile exists, child profile grants access