mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +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)
|
if (retval != 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (names_only) {
|
||||||
|
dump_policy_names();
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the match string to determine type of regex support needed */
|
/* Get the match string to determine type of regex support needed */
|
||||||
get_match_string();
|
get_match_string();
|
||||||
|
|
||||||
@@ -487,11 +492,6 @@ int process_profile(int option, char *profilename)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (names_only) {
|
|
||||||
dump_policy_names();
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!regex_support()) {
|
if (!regex_support()) {
|
||||||
die_if_any_regex();
|
die_if_any_regex();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user