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

profile namespace tests

This commit is contained in:
John Johansen 2007-11-16 09:22:49 +00:00
parent a4721bd02d
commit 92a569fdb3
4 changed files with 91 additions and 0 deletions

View 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,
}

View 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,
}

View 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,
}

View File

@ -0,0 +1,7 @@
#
#=DESCRIPTION change_profile with name space
#=EXRESULT PASS
#
/usr/bin/foo {
change_profile foo:/bin/foo,
}