From 838864aeb22fb558575899ad5a9323c76be97813 Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Sep 16 2019 06:53:57 +0000 Subject: plugins: Add missing "If " strings Add "If " strings that where omited in commit 98c2ad7c16be9b79f880964b3ccfbfbc5bb4ed58 (Do not split If sentences to framework and plugins) --- diff --git a/plugins/src/allow_execmod.py b/plugins/src/allow_execmod.py index 8996cd2..6e1f6bf 100644 --- a/plugins/src/allow_execmod.py +++ b/plugins/src/allow_execmod.py @@ -66,13 +66,13 @@ class plugin(Plugin): ''') - unsafe_if_text = "this issue occurred during normal system operation." + unsafe_if_text = "If this issue occurred during normal system operation." unsafe_then_text = """This alert could be a serious issue and your system could be compromised. Setroubleshoot examined '$FIX_TARGET_PATH' to make sure it was built correctly, but can not determine if this application has been compromised.""" unsafe_do_text = "Contact your security administrator and report this issue" - if_text = "you trust $TARGET_PATH to run correctly and want to allow $SOURCE to load it" + if_text = "If you trust $TARGET_PATH to run correctly and want to allow $SOURCE to load it" then_text = "You need to change the label on '$FIX_TARGET_PATH' to textrel_shlib_t." diff --git a/plugins/src/automount_exec_config.py b/plugins/src/automount_exec_config.py index afce55c..a64eaf2 100644 --- a/plugins/src/automount_exec_config.py +++ b/plugins/src/automount_exec_config.py @@ -42,7 +42,7 @@ class plugin(Plugin): fix_cmd = """/usr/sbin/semanage fcontext -a -t bin_t '$FIX_TARGET_PATH';/usr/sbin/restorecon -v '$FIX_TARGET_PATH'""" - if_text = 'you want to allow automounter to execute $TARGET_PATH' + if_text = 'If you want to allow automounter to execute $TARGET_PATH' then_text = "Change the file context of '$TARGET_PATH' to bin_t."