summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-10-02 15:49:54 -0400
committerMichael DeHaan <mdehaan@redhat.com>2009-10-02 15:49:54 -0400
commit54fddd819f1b998df97078740ed831a29ecd9cdc (patch)
tree75806097d17144e08972f5ca6f02e04ba9be9bf2
parent765930cf5dd70e84bfea3aa556393fee8b565ffc (diff)
downloadcobbler-54fddd819f1b998df97078740ed831a29ecd9cdc.tar.gz
cobbler-54fddd819f1b998df97078740ed831a29ecd9cdc.tar.xz
cobbler-54fddd819f1b998df97078740ed831a29ecd9cdc.zip
Fix checks WRT SELinux
-rw-r--r--cobbler/action_check.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index f23ed887..1337fc57 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -205,9 +205,8 @@ class BootCheck:
# now check to see that the Django sessions path is accessible
# by Apache
- data4 = utils.subprocess_get(self.logger,"/usr/sbin/semanage fcontext -l | grep httpd_sys_content_t",shell=True)
- print "DEBUG: data4=%s\n" % data4
- selinux_msg = "you need to set some SELinux rules if you want to use cobbler-web (an optional package), run the following: /usr/sbin/semanage fcontext -a -t httpd_sys_content_t \"%s\""
+ data4 = utils.subprocess_get(self.logger,"/usr/sbin/semanage fcontext -l | grep httpd_sys_content_rw_t",shell=True)
+ selinux_msg = "you need to set some SELinux rules if you want to use cobbler-web (an optional package), run the following: /usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t \"%s\""
rule4 = False
for line in data4.split("\n"):
if line.startswith("/usr/share/cobbler/web/sessions/.*"):