I have not been working with Linux / Centos for a while and I am not sure why SELinux is not working on a system that I have (the newest Centos 7, 64-bit).
1) I have the needed symlink and the config is set to Enforcing / Targeted.
2) The contents of /proc/cmdline are "root=/dev/sda2 ro" (just this and nothing else, one line).
As far as I've been reading the forum and other sites these are the two aspects that I should check.
I am not sure what other steps I could take and why it does not work.
Thanks.
SELinux not working by default (from the start)
Re: SELinux not working by default (from the start)
Show the output from ls -la /etc/sysconfig/selinux /etc/selinux/config and also from getenforce and uname -a
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: SELinux not working by default (from the start)
http://prntscr.com/n4p3zd
http://prntscr.com/n4p4sa
Also (and thanks a lot for the info), as a secondary thing "yum install firewalld" - "No package firewalld available"
http://prntscr.com/n4p4sa
Also (and thanks a lot for the info), as a secondary thing "yum install firewalld" - "No package firewalld available"
-
- Posts: 519
- Joined: 2012/06/26 14:20:47
Re: SELinux not working by default (from the start)
That is not a CentOS kernel so you'll have to ask whoever you got it from.
Re: SELinux not working by default (from the start)
cat /etc/centos-release shows:
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
Re: SELinux not working by default (from the start)
That's an OVH kernel I think and they do not build them with selinux support. It might have grsecurity (or not) but since it's not our kernel we cannot support it. I believe OVH have or used to have, a document telling how to install a standard CentOS kernel.
It's not a CentOS kernel and you'll need to ask OVH for support (or whoever your hoster is).
Oh, and firewalld is CentOS 7 not 6. On 6 it's just plain iptables. Moved to the CentOS 6 equivalent forum.
It's not a CentOS kernel and you'll need to ask OVH for support (or whoever your hoster is).
Oh, and firewalld is CentOS 7 not 6. On 6 it's just plain iptables. Moved to the CentOS 6 equivalent forum.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke