mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
a0df142852
commit
b41d34e638
5 changed files with 11 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
#=Description basic mount rule
|
||||
#=Description basic mount rule with incompatible options
|
||||
#=EXRESULT FAIL
|
||||
#
|
||||
/usr/bin/foo {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
#=Description basic mount rule
|
||||
#=Description basic mount rule with incompatible options
|
||||
#=EXRESULT FAIL
|
||||
#
|
||||
/usr/bin/foo {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
#=Description basic mount rule
|
||||
#=Description basic mount rule with incompatible options
|
||||
#=EXRESULT FAIL
|
||||
#
|
||||
/usr/bin/foo {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
#=Description basic mount rule
|
||||
#=Description basic mount rule with incompatible options
|
||||
#=EXRESULT FAIL
|
||||
#
|
||||
/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,
|
||||
}
|
Loading…
Add table
Reference in a new issue