mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
output the names only list before post processing the policy
This commit is contained in:
@@ -459,6 +459,11 @@ int process_profile(int option, char *profilename)
|
||||
if (retval != 0)
|
||||
goto out;
|
||||
|
||||
if (names_only) {
|
||||
dump_policy_names();
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Get the match string to determine type of regex support needed */
|
||||
get_match_string();
|
||||
|
||||
@@ -487,11 +492,6 @@ int process_profile(int option, char *profilename)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (names_only) {
|
||||
dump_policy_names();
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!regex_support()) {
|
||||
die_if_any_regex();
|
||||
}
|
||||
|
Reference in New Issue
Block a user