Skip to content

Commit

Permalink
EUCA-11668 selinux check in eucalyptus-nc startup script is too strict
Browse files Browse the repository at this point in the history
Description: Use getenforce instead of /usr/sbin/selinuxenabled to determine if selinux is running in enforcing/permissive mode
  • Loading branch information
Steven Graham committed Nov 10, 2015
1 parent 6282550 commit 82abddf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tools/eucalyptus-nc.in
Expand Up @@ -112,14 +112,6 @@ fi
export EUCALYPTUS
RUNDIR=$EUCALYPTUS/var/run/eucalyptus

# check selinux status
selinux_enabled() {

$(/usr/sbin/selinuxenabled)

return $?
}

create_httpd_config() {
IPS="all"

Expand All @@ -144,8 +136,7 @@ create_httpd_config() {

# crude way to start the axis2c services
do_start() {
if selinux_enabled ; then
# selinuxenabled should exit with rc 1 if disabled
if [ "$(getenforce)" == "Enforcing" ]; then
echo
echo
echo "SELinux is enabled on this NC host. Disable SELinux before starting NC."
Expand Down

0 comments on commit 82abddf

Please sign in to comment.