mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
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:
commit
31c9cf6845
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue