mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
apparmor: correct apparmor_parser -N command privilege
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@canonical.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
parent
8eb069cce5
commit
9c42360b34
@ -456,8 +456,10 @@ static int process_arg(int c, char *optarg)
|
|||||||
skip_cache = 1;
|
skip_cache = 1;
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
|
count++;
|
||||||
names_only = 1;
|
names_only = 1;
|
||||||
skip_cache = 1;
|
skip_cache = 1;
|
||||||
|
kernel_load = 0;
|
||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user