mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-03 15:55:46 +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:
committed by
John Johansen
parent
a0df142852
commit
b41d34e638
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
7
parser/tst/simple_tests/mount/ok_16.sd
Normal file
7
parser/tst/simple_tests/mount/ok_16.sd
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
#=Description basic mount rule
|
||||||
|
#=EXRESULT PASS
|
||||||
|
#
|
||||||
|
/usr/bin/foo {
|
||||||
|
mount options=(rw nosuid) -> /foo,
|
||||||
|
}
|
Reference in New Issue
Block a user