From 8865ff69d88312f281185bad6e8970a6a15e412c Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 28 Aug 2024 13:39:52 -0700 Subject: [PATCH] Replace 'sanitise the environment' wording in aa.py ask_rule_questions Signed-off-by: Ryan Lee --- utils/apparmor/aa.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index cf2340007..5885659f0 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -871,20 +871,22 @@ def ask_exec(hashlog): elif ans in ('CMD_px', 'CMD_cx', 'CMD_pix', 'CMD_cix'): exec_mode = ans.replace('CMD_', '') px_msg = _( - "Should AppArmor sanitise the environment when\n" - "switching profiles?\n" + "Should AppArmor enable secure-execution mode\n" + "when switching profiles?\n" "\n" - "Sanitising environment is more secure,\n" - "but some applications depend on the presence\n" - "of LD_PRELOAD or LD_LIBRARY_PATH.") + "Doing so is more secure, but some applications\n" + "depend on the presence of LD_PRELOAD or\n" + "LD_LIBRARY_PATH, which would be sanitized by\n" + "enabling secure-execution mode.") if parent_uses_ld_xxx: px_msg = _( - "Should AppArmor sanitise the environment when\n" - "switching profiles?\n" + "Should AppArmor enable secure-execution mode\n" + "when switching profiles?\n" "\n" - "Sanitising environment is more secure,\n" + "Doing so is more secure,\n" "but this application appears to be using LD_PRELOAD\n" - "or LD_LIBRARY_PATH and sanitising the environment\n" + "or LD_LIBRARY_PATH, and sanitising those environment\n" + "variables by enabling secure-execution mode\n" "could cause functionality problems.") ynans = aaui.UI_YesNo(px_msg, 'y')