From 9cb72734eb79f5fac9912f2f304f7ecdf93c70a3 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sat, 8 Feb 2025 19:05:47 -0800 Subject: [PATCH] utils aa-notify: Update message to improve merged rules message The current notification can be confusing, in that it can present a profile followed by a list of rules that can't be selected. Explictly state that the Unknown profile can't be modified so the user has some indication that not being able to select the shown rules is expected. Signed-off-by: John Johansen --- utils/aa-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aa-notify b/utils/aa-notify index 730962e83..df1de2b03 100755 --- a/utils/aa-notify +++ b/utils/aa-notify @@ -761,7 +761,7 @@ def get_aggregated(rl, agg, max_nb_profiles, keys_to_aggregate, special_profiles if profile_path is not None: clean_rules_name = _('profile {}:').format(profile) else: - clean_rules_name = _('# Unknown profile {}').format(profile) + clean_rules_name = _('# Unknown profile "{}" can not be modified:').format(profile) else: clean_rules_name = _('# unprivileged userns denials ({}):').format(profile) clean_rules[clean_rules_name] = ProfileRules(