From 8ffec9357dbad1323cf2044a8d3ae3f7e30ae23d Mon Sep 17 00:00:00 2001 From: John Johansen Date: Tue, 2 Jun 2015 01:00:29 -0700 Subject: [PATCH] apparmor.d.pod: create RULES grouping and cleanup profile PROFILE rule Signed-off-by: John Johansen Acked-by: Christian Boltz --- parser/apparmor.d.pod | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/parser/apparmor.d.pod b/parser/apparmor.d.pod index 11b93e58d..f0a8cea92 100644 --- a/parser/apparmor.d.pod +++ b/parser/apparmor.d.pod @@ -50,11 +50,19 @@ B = '"' path '"' (the path is passed to open(2)) B = 'E' relative path 'E' (the path is relative to F) -B = '#' I +B = '#' I [ '\r' ] '\n' B = any characters -B = [ I ... ] [ I ... ] ( '"' I '"' | I ) [ 'flags=(complain)' ]'{' [ ( I | I | I | I | I | I | I | I | I | I | I | I | I | I) ... ] '}' +B = [ I ... ] [ I ... ] ( '"' I '"' | I ) [ 'flags=(complain)' ]'{' ( I )* '}' + +B = [ ( I | I ',' | I ) + +B = ( I | I ) [ '\r' ] '\n' + +B = ( I | I | I | I | I | I | I | I | I | I ) + +B = I B = [ I ... ] ( I | 'profile ' I ) '{' [ ( I | I | I ) ... ] '}'