1yv0s
April 12, 2024, 9:11pm
1
I am unable to enable selinux. I have SELINUX=enforcing in /etc/selinux/config.
sestatus shows disabled even with enforcing on. If I run setenforce.
rpm -qa kernel
kernel-5.14.0-362.18.1.el9_3.0.1.x86_64
kernel-5.14.0-362.24.1.el9_3.x86_64
kernel-5.14.0-362.24.1.el9_3.0.1.x86_64
It’s a bit strange, because the default is “on”, so did you mess with it at some point?
1yv0s
April 12, 2024, 9:55pm
3
I have not changed anything; I have tried to auto relabel, and I have tried to restore from backups with no luck.
Can you explain a bit more about what led up to the problem where you needed to relabel and restore from backups?
Can you also post full output from ‘sestatus’
And output of cat /proc/cmdline
1yv0s
April 13, 2024, 11:47pm
6
root=/dev/sda console=tty1 console=ttyS0 ro devtmpfs.mount=1
1yv0s
April 13, 2024, 11:52pm
7
prior to attempting the relabel when I would enter sestatus even when /etc/selinux/config was enabled.
sestatus
SELinux status: disabled
Is this some sort of VPS you have? If so, what service? There should be no cases (with the exception of certain VPS or the user changing their system) that SELinux should ever be permanently disabled.
1yv0s
April 14, 2024, 2:08am
9
This server is hosted on linode.
1yv0s
April 14, 2024, 1:59pm
10
This has been resolved by changing the kernel to Grub 2 in the linode server manager. Im not sure why linode disables selinux in the kernel.
system
Closed
June 13, 2024, 1:59pm
11
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.