mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
profile namespace tests
This commit is contained in:
parent
a4721bd02d
commit
92a569fdb3
31
parser/tst/simple_tests/profile_ns_bad1.sd
Normal file
31
parser/tst/simple_tests/profile_ns_bad1.sd
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# $Id: profile_ns_bad1.sd 81 2006-08-04 18:14:49Z jrjohansen $
|
||||
#=DESCRIPTION collision same profile, same namespace
|
||||
#=EXRESULT FAIL
|
||||
# vim:syntax=subdomain
|
||||
# Last Modified: Sun Apr 17 19:44:44 2005
|
||||
#
|
||||
foo:/does/not/exist {
|
||||
#include <includes/base>
|
||||
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
/bin/echo uxuxuxuxux,
|
||||
}
|
||||
|
||||
foo:/does/not/exist {
|
||||
#include <includes/base>
|
||||
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
/bin/echo uxuxuxuxux,
|
||||
}
|
||||
|
19
parser/tst/simple_tests/profile_ns_ok1.sd
Normal file
19
parser/tst/simple_tests/profile_ns_ok1.sd
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# $Id: profile_basic_ok1.sd 81 2006-08-04 18:14:49Z jrjohansen $
|
||||
#=DESCRIPTION Basic namespace test, duplicate mode bits
|
||||
#=EXRESULT PASS
|
||||
# vim:syntax=subdomain
|
||||
# Last Modified: Sun Apr 17 19:44:44 2005
|
||||
#
|
||||
foo:/does/not/exist {
|
||||
#include <includes/base>
|
||||
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
/bin/echo uxuxuxuxux,
|
||||
}
|
||||
|
34
parser/tst/simple_tests/profile_ns_ok2.sd
Normal file
34
parser/tst/simple_tests/profile_ns_ok2.sd
Normal file
@ -0,0 +1,34 @@
|
||||
#
|
||||
# $Id: profile_ns_ok2.sd 81 2006-08-04 18:14:49Z jrjohansen $
|
||||
#=DESCRIPTION same profile different namespaces test, duplicate mode bits
|
||||
#=EXRESULT PASS
|
||||
# vim:syntax=subdomain
|
||||
# Last Modified: Sun Apr 17 19:44:44 2005
|
||||
#
|
||||
/does/not/exist {
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
}
|
||||
|
||||
foo:/does/not/exist {
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
}
|
||||
|
||||
bar:/does/not/exist {
|
||||
/usr/X11R6/lib/lib*so* rrr,
|
||||
/does/not/exist r,
|
||||
/var/log/messages www,
|
||||
/tmp/sd*.foo rwrwwrll,
|
||||
/bin/cat pxpxpxpxpx,
|
||||
/bin/ls ixixixix,
|
||||
}
|
||||
|
7
parser/tst/simple_tests/simple_ok_change_profile_3.sd
Normal file
7
parser/tst/simple_tests/simple_ok_change_profile_3.sd
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
#=DESCRIPTION change_profile with name space
|
||||
#=EXRESULT PASS
|
||||
#
|
||||
/usr/bin/foo {
|
||||
change_profile foo:/bin/foo,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user