Merge regression tests: fix stack tests for new proc interface

the stacking tests need to be able to read and write the new apparmor
dir in proc, if that interface has been selected. Update the tests to
make sure they have the permissions needed.

Signed-off-by: John Johansen <john.johansen@canonical.com>

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1136
Approved-by: Christian Boltz <apparmor@cboltz.de>
Merged-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
Christian Boltz 2023-12-30 12:02:47 +00:00
commit 31c9cf6845
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ otherok="${otherfile}:${okperm}"
thirdok="${thirdfile}:${okperm}"
sharedok="${sharedfile}:${okperm}"
getcon="/proc/*/attr/current:r"
getcon="/proc/*/attr/{apparmor/,}current:r"
othertest="$pwd/rename"
thirdtest="$pwd/exec"

View file

@ -33,8 +33,8 @@ otherok="${otherfile}:${okperm}"
thirdok="${thirdfile}:${okperm}"
sharedok="${sharedfile}:${okperm}"
getcon="/proc/*/attr/current:r"
onexec="/proc/*/attr/exec:w"
getcon="/proc/*/attr/{apparmor/,}current:r"
onexec="/proc/*/attr/{apparmor/,}exec:w"
othertest="$pwd/rename"
thirdtest="$pwd/exec"