Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos-6.6: Force to set SELinux to a permissive mode #306

Merged
merged 1 commit into from
Jan 15, 2015

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented Dec 24, 2014

In the CentOS 6.6 distribution SELinux is set to "enforcing" instead of "permissive" regardless of the fact that ks.cfg contains the line selinux --permissive.
This line is ignored by anaconda and the resulted box has the following SELinux configuration:

$  sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

$ cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

I've noticed that it is reproduced only on centos-6.6. If we build "centos-7.0" box, or even try to reset to 99cacf4 and build "centos-6.5" box, then there will be SELinux in the permissive mode.

Seems like CentOS 6.6 has a 'broken' anaconda installer? The similar issue was detected in older RedHat version, but it was not fixed: https://bugzilla.redhat.com/show_bug.cgi?id=435300

So, I've applied the workaround from the link above.

@lamont-granquist
Copy link

👍

@rickard-von-essen
Copy link
Collaborator

+1
On Jan 15, 2015 8:16 AM, "Lamont Granquist" notifications@github.com
wrote:

[image: 👍]


Reply to this email directly or view it on GitHub
#306 (comment).

@fletchowns
Copy link

+1 I ran into the same issue and this fixed it for me

juliandunn added a commit that referenced this pull request Jan 15, 2015
centos-6.6: Force to set SELinux to a permissive mode
@juliandunn juliandunn merged commit 6869c0b into chef:master Jan 15, 2015
@legal90 legal90 deleted the fix-centos-selinux branch February 26, 2015 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants