Why can't set my selinux status as enabled?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I had bought a vps ,installed centos7.



rpm -qa | grep selinux
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64
libselinux-python-2.5-12.el7.x86_64


No /etc/sysconfig/selinux and /etc/selinux/config file in my centos7.



vi /etc/sysconfig/selinux
SELINUX=enabled


Reboot my vps and login.



sestatus
SELinux status: disabled


Why can't set my selinux status as enabled?









share





















  • If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
    – sla3k
    3 mins ago















up vote
0
down vote

favorite












I had bought a vps ,installed centos7.



rpm -qa | grep selinux
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64
libselinux-python-2.5-12.el7.x86_64


No /etc/sysconfig/selinux and /etc/selinux/config file in my centos7.



vi /etc/sysconfig/selinux
SELINUX=enabled


Reboot my vps and login.



sestatus
SELinux status: disabled


Why can't set my selinux status as enabled?









share





















  • If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
    – sla3k
    3 mins ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I had bought a vps ,installed centos7.



rpm -qa | grep selinux
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64
libselinux-python-2.5-12.el7.x86_64


No /etc/sysconfig/selinux and /etc/selinux/config file in my centos7.



vi /etc/sysconfig/selinux
SELINUX=enabled


Reboot my vps and login.



sestatus
SELinux status: disabled


Why can't set my selinux status as enabled?









share













I had bought a vps ,installed centos7.



rpm -qa | grep selinux
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64
libselinux-python-2.5-12.el7.x86_64


No /etc/sysconfig/selinux and /etc/selinux/config file in my centos7.



vi /etc/sysconfig/selinux
SELINUX=enabled


Reboot my vps and login.



sestatus
SELinux status: disabled


Why can't set my selinux status as enabled?







centos selinux





share












share










share



share










asked 7 mins ago









it_is_a_literature

18942554




18942554











  • If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
    – sla3k
    3 mins ago

















  • If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
    – sla3k
    3 mins ago
















If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
– sla3k
3 mins ago





If this a OpenVZ container VPS, then selinux will need to be disabled per this link wiki.openvz.org/Quick_installation_(legacy)#SELinux. That means you cannot enable/disable it as per your choice. If you need SElinux, then I'd suggest to go with the provider who has an option of KVM guests (generally a bit pricey) and go with that. You can check which one you have by following the command at: serverfault.com/questions/595471/…
– sla3k
3 mins ago
















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480252%2fwhy-cant-set-my-selinux-status-as-enabled%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480252%2fwhy-cant-set-my-selinux-status-as-enabled%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?