2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 05:47:59 +00:00

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
This commit is contained in:
Christian Boltz 2023-05-18 20:05:42 +02:00
parent e7f1b882f7
commit 9a9af71d83
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C
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 #=EXRESULT FAIL
# #
/usr/bin/foo { /usr/bin/foo {

View File

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

View File

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

View File

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

View File

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