From 668b67124fbc5a69372bb9177f1b90cfd7c9c77e Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Aug 29 2017 11:22:44 +0000 Subject: [PATCH 1/4] plugins: correct grammatical errors compromized -> compromised tries modify -> tries to modify Use of commas and indefinite articles. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1331780 Signed-off-by: Vit Mojzis (cherry picked from commit f6731b74e9341f929ff685cfe590fa1d93556bd3) --- diff --git a/plugins/src/connect_ports.py b/plugins/src/connect_ports.py index ad2a2d2..d9e7a8f 100644 --- a/plugins/src/connect_ports.py +++ b/plugins/src/connect_ports.py @@ -32,7 +32,7 @@ class plugin(Plugin): SELinux has denied $SOURCE from connecting to a network port $PORT_NUMBER which does not have an SELinux type associated with it. If $SOURCE should be allowed to connect on $PORT_NUMBER, use the semanage command to assign $PORT_NUMBER to a port type that $SOURCE_TYPE can connect to (%s). \n\nIf $SOURCE is not supposed - to connect to $PORT_NUMBER, this could signal a intrusion attempt. + to connect to $PORT_NUMBER, this could signal an intrusion attempt. ''') fix_description = _(''' diff --git a/plugins/src/httpd_can_sendmail.py b/plugins/src/httpd_can_sendmail.py index 7cb9aeb..f4c5939 100644 --- a/plugins/src/httpd_can_sendmail.py +++ b/plugins/src/httpd_can_sendmail.py @@ -33,7 +33,7 @@ class plugin(Plugin): SELinux has denied the http daemon from sending mail. An httpd script is trying to connect to a mail port or execute the sendmail command. If you did not setup httpd to sendmail, this could - signal a intrusion attempt. + signal an intrusion attempt. ''') fix_description = _(''' diff --git a/plugins/src/mmap_zero.py b/plugins/src/mmap_zero.py index fe3ee29..7f306c0 100644 --- a/plugins/src/mmap_zero.py +++ b/plugins/src/mmap_zero.py @@ -32,11 +32,11 @@ class plugin(Plugin): problem_description = _(''' SELinux has denied the $SOURCE the ability to mmap low area of the kernel - address space. The ability to mmap a low area of the address space, as + address space. The ability to mmap a low area of the address space is configured by /proc/sys/kernel/mmap_min_addr. Preventing such mappings helps protect against exploiting null deref bugs in the kernel. All applications that need this access should have already had policy written - for them. If a compromised application tries modify the kernel this AVC + for them. If a compromised application tries to modify the kernel, this AVC would be generated. This is a serious issue. Your system may very well be compromised. ''') diff --git a/plugins/src/openvpn.py b/plugins/src/openvpn.py index 5efa25b..73a7fb8 100644 --- a/plugins/src/openvpn.py +++ b/plugins/src/openvpn.py @@ -34,13 +34,14 @@ class plugin(Plugin): problem_description = _(''' SELinux denied access requested by $SOURCE. $TARGET_PATH may - be a mislabeled. openvpn is allowed to read content in home directory if it + be mislabeled. openvpn is allowed to read content in home directory if it is labeled correctly. ''') fix_description = _(''' You can restore the default system context to this file by executing the - restorecon command. restorecon restore using restorecon -R /root/.ssh. + restorecon command. + # restorecon -R /root/.ssh ''') def get_if_text(self, avc, args): diff --git a/plugins/src/restorecon.py b/plugins/src/restorecon.py index cdc7b8d..2c6c2a7 100644 --- a/plugins/src/restorecon.py +++ b/plugins/src/restorecon.py @@ -63,9 +63,9 @@ class plugin(Plugin): def get_problem_description(self, avc, args): return _(''' SELinux denied access requested by $SOURCE. $TARGET_PATH may - be a mislabeled. $TARGET_PATH default SELinux type is + be mislabeled. $TARGET_PATH default SELinux type is %s, but its current type is $TARGET_TYPE. Changing - this file back to the default type, may fix your problem. + this file back to the default type may fix your problem.

File contexts can be assigned to a file in the following ways.