[apparmor] [patch 28/26] Add support for ipc to parser v5
John Johansen
john.johansen at canonical.com
Thu Mar 27 19:49:09 UTC 2014
Fix: output of apparmor_parser -p having double comma
For some rules the output of apparmor_parser -p has a double comma
Eg.
ptrace (tracedby),
dbus (send,receive),
is output as
ptrace (tracedby),,
dbus (send,receive),,
Signed-off-by: John Johansen <john.johansen at canonical.com>
---
parser/parser_lex.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 2.9-test.orig/parser/parser_lex.l
+++ 2.9-test/parser/parser_lex.l
@@ -604,7 +604,7 @@
<INITIAL,NETWORK_MODE,RLIMIT_MODE,MOUNT_MODE,DBUS_MODE,SIGNAL_MODE,PTRACE_MODE>{
{END_OF_RULE} {
if (YY_START != INITIAL)
- POP();
+ POP_NODUMP();
RETURN_TOKEN(TOK_END_OF_RULE);
}
More information about the AppArmor
mailing list