I get a new vServer with Centos 7.3. and SELinux 2.5.* . I would like to get SELinux to be active to get greater access control over my server, but nothing works. If I check SELinux Mode and enter

getenforce: disabled


SELinux status:        disabled

Also I restart the server with shutdown -r now still the same problem. To check what SELinux packages are installed on your CentOS

rpm -qa | grep selinux

I already installed more SELinux packages to catch a few more error messages in my logs but all log files are empty.

cat /var/log/messages | grep "SELinux is preventing"
empty feedback also with  | grep "SELinux"

If you look at the SELINUX config file with the command cat, I see that the SELINUX is already set to enforcing not disabled.

Is that a bug or what? I know the Centos 7.3 version is new but I get the vServer with that operation system. I already tried it with my server with 7.1 and all is fine.

And yes I already reboot the server multiple times.

  • Please post the output of virt-what. (If it is not installed, then please install it first.) – Michael Hampton Dec 14 '16 at 21:53
  • @MichaelHampton thanks for getting back, I get openvz – Nicolas Schreienberger Dec 14 '16 at 22:02
  • @MichaelHampton so is it incompatible with OpenVZ? – Nicolas Schreienberger Dec 14 '16 at 22:04

Your VPS runs on OpenVZ, a container based "virtualization" which has no support for SELinux.

If you need SELinux, you will need to switch to another hypervisor which supports SELinux in guests, such as Hyper-V, VMware, KVM, Xen, and possibly others.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.