Bug 985503

Summary: oo-accept-broker needs to check httpd_execmem
Product: OpenShift Container Platform Reporter: Miciah Dashiel Butler Masters <mmasters>
Component: NodeAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.2.0CC: adellape, bleanhar, jialiu, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The broker and management console both require the httpd_execmem SELinux Boolean to be enabled, but this was missing from the installation script. With this fix, the installation script was updated to correctly enable httpd_execmem for new installations. The oo-accept-broker command has also been updated to inform administrators if this setting is missing on an existing installation.
Story Points: ---
Clone Of:
: 991223 (view as bug list) Environment:
Last Closed: 2013-08-05 17:20:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 991223    

Description Miciah Dashiel Butler Masters 2013-07-17 15:51:07 UTC
Description of problem:
oo-accept-broker needs to check the httpd_execmem SELinux Boolean.

The broker and the console both need httpd_execmem to be enabled (the broker and the console both use Passenger, which executes writable memory, and the console uses The Ruby Racer, which uses V8, which also executes writable memory).


Version-Release number of selected component (if applicable):
OSE 1.2.1.


How reproducible:
Easily.


Steps to Reproduce:
1. Run `setsebool httpd_execmem=false`.
2. Run `oo-accept-broker`.


Actual results:
Previously, oo-accept-broker did not report any problem with SELinux.


Expected results:
oo-accept-broker should report a failure because httpd_execmem is not enabled.


Additional info:
https://github.com/openshift/enterprise-server/pull/104 (merged).
https://github.com/openshift/origin-server/pull/3064 (awaiting review).
Bug 983686 (documentation bug).

Comment 2 Johnny Liu 2013-07-18 03:43:12 UTC
Verified this bug with 1.2/2013-07-17.1, and PASS.

# setsebool httpd_execmem=false
# getsebool httpd_execmem
httpd_execmem --> off
# oo-accept-broker -v
...
FAIL: SELinux boolean httpd_execmem is disabled -- run setsebool -P httpd_execmem=on
...

Comment 5 errata-xmlrpc 2013-08-05 17:20:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1138.html