[apparmor] [Patch] Fix parser -N command
Seth Arnold
seth.arnold at gmail.com
Thu Aug 9 22:12:20 UTC 2012
This patch reads well; not tested but makes sense.
Thanks!
------Original Message------
From: John Johansen
Sender: apparmor-bounces at lists.ubuntu.com
To: apparmor
Subject: [apparmor] [Patch] Fix parser -N command
Sent: Aug 9, 2012 3:05 PM
Fix the apparmor_parsers -N command (which dumps the list of profile
names found in a policy file) to be available without privilege and
also make it be recognized as a command instead of an option so that
it can conflict with -a -r -R -S and -o.
Currently it can be specified with these commands but will cause the
parser to short circuit just dumping the names and not doing the actual
profile compile or load.
Signed-off-by: John Johansen <john.johansen at canonical.com>
---
=== modified file 'parser/parser_main.c'
--- parser/parser_main.c 2012-08-09 07:37:25 +0000
+++ parser/parser_main.c 2012-08-09 22:00:03 +0000
@@ -456,8 +456,10 @@
skip_cache = 1;
break;
case 'N':
+ count++;
names_only = 1;
skip_cache = 1;
+ kernel_load = 0;
break;
case 'S':
count++;
--
AppArmor mailing list
AppArmor at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
More information about the AppArmor
mailing list