Typo in webserver.cf

View: New views
1 Messages — Rating Filter:   Alert me  

Typo in webserver.cf

by Justin Lloyd :: Rate this Message:

| View Threaded | Show Only this Message

In webserver.cf, the have_selinux class is set if /usr/sbin/setenforce
exists, but then when it's run in the commands promises, it's called as
/usr/bin/setenforce, leading to the following output from cf-agent:

Proposed executable file "/usr/bin/setenforce" doesn't exist
/usr/bin/setenforce 0 promises to be executable but isn't
I: Made in version 'promises.cf 0.2.0' of
'/var/cfengine/inputs/webserver.cf' near line 74
R:  NB - Disabling SELinux to allow PHP to function

Here's a trivial patch:

--- webserver.cf.orig   2010-03-11 21:21:14.000000000 +0000
+++ webserver.cf        2010-03-25 20:36:48.000000000 +0000
@@ -71,7 +71,7 @@
 
  have_selinux::
 
-   "/usr/bin/setenforce 0";
+   "/usr/sbin/setenforce 0";
 
  web_ok.suse_start_apache::
 
@@ -179,4 +179,4 @@
 
       edit_field => quoted_var("$(del_modules)","delete");
 
-}
\ No newline at end of file
+}

--
Justin C. Lloyd
Unix Infrastructure Engineer
DigitalGlobe, An Imaging and Information Company



This electronic communication and any attachments may contain confidential and proprietary
information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee
responsible for delivering this communication to the intended recipient, or if you have received
this communication in error, please do not print, copy, retransmit, disseminate or
otherwise use the information. Please indicate to the sender that you have received this
communication in error, and delete the copy you received. DigitalGlobe reserves the
right to monitor any electronic communication sent or received by its employees, agents
or representatives.

_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@...
https://cfengine.org/mailman/listinfo/bug-cfengine