mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
Add a couple of testcases around change_profile keyword and different
types of profile names.
This commit is contained in:
parent
100d791e84
commit
a08658b46d
2 changed files with 20 additions and 0 deletions
10
parser/tst/simple_tests/simple_ok_change_profile_4.sd
Normal file
10
parser/tst/simple_tests/simple_ok_change_profile_4.sd
Normal file
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
#=DESCRIPTION change_profile with a variable (LP: #390810)
|
||||
#=EXRESULT PASS
|
||||
#
|
||||
|
||||
@{LIBVIRT}="libvirt"
|
||||
|
||||
/usr/bin/foo {
|
||||
change_profile -> @{LIBVIRT}-foo,
|
||||
}
|
10
parser/tst/simple_tests/simple_ok_change_profile_5.sd
Normal file
10
parser/tst/simple_tests/simple_ok_change_profile_5.sd
Normal file
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
#=DESCRIPTION change_profile with variable+regex (LP: #390810)
|
||||
#=EXRESULT PASS
|
||||
#
|
||||
|
||||
@{LIBVIRT}="libvirt"
|
||||
|
||||
/usr/bin/foo {
|
||||
change_profile -> @{LIBVIRT}-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*,
|
||||
}
|
Loading…
Add table
Reference in a new issue