[apparmor] [patch] some more globbing tests

Christian Boltz apparmor at cboltz.de
Sat Jul 26 17:15:58 UTC 2014


Hello,

this patch adds some more globbing tests for globs with extension, 
including filenames that contain a * wildcard and a .* regex wildcard.


=== modified file 'utils/test/regex_tests.ini'
--- utils/test/regex_tests.ini  2014-02-12 23:54:00 +0000
+++ utils/test/regex_tests.ini  2014-07-26 17:13:34 +0000
@@ -48,4 +48,19 @@
        /foo/user/bar/apparmor = True
        /foo/user/bar/apparmor/tools = False
        /foo/user/bar/ = False
-       /foo/user/bar/apparmor/ = False
\ No newline at end of file
+       /foo/user/bar/apparmor/ = False
+
+[/foo/**.jpg]
+       /foo/bar/baz/foobar.jpg = True
+       /foo/bar/foobar.jpg = True
+       /foo/bar/*.jpg = True
+       /foo/bar.jpg = True
+       /foo/barjpg = False
+       /foo/.* = False
+       /foo/**.jpg = True
+       /foo/*.jpg = True
+       /bar.jpg = False
+       /**.jpg = False
+       /*.jpg = False
+       /foo/*.bar = False
+





Regards,

Christian Boltz
-- 
Maybe you need to turn the chamaeleon (gecko) once more, 90 grades this
time, with a silly grin and a rolling stones tongue coming out. ;-))
[Eberhard Moenkeberg in opensuse]




More information about the AppArmor mailing list