2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Merge extend test profiles for mount

- in bad_?.sd, explain why the profile is bad (conflicting options)
- add a good profile with two space-separated options

This is a follow-up for https://gitlab.com/apparmor/apparmor/-/merge_requests/1029

If we backport !1029, we should also backport these test changes.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1035
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
(cherry picked from commit d700f87d3e)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2023-05-23 21:40:06 +00:00
committed by John Johansen
parent a0df142852
commit b41d34e638
5 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
#
#=Description basic mount rule
#=Description basic mount rule with incompatible options
#=EXRESULT FAIL
#
/usr/bin/foo {

View File

@@ -1,5 +1,5 @@
#
#=Description basic mount rule
#=Description basic mount rule with incompatible options
#=EXRESULT FAIL
#
/usr/bin/foo {

View File

@@ -1,5 +1,5 @@
#
#=Description basic mount rule
#=Description basic mount rule with incompatible options
#=EXRESULT FAIL
#
/usr/bin/foo {

View File

@@ -1,5 +1,5 @@
#
#=Description basic mount rule
#=Description basic mount rule with incompatible options
#=EXRESULT FAIL
#
/usr/bin/foo {

View File

@@ -0,0 +1,7 @@
#
#=Description basic mount rule
#=EXRESULT PASS
#
/usr/bin/foo {
mount options=(rw nosuid) -> /foo,
}