[root@mongo-cent ~]# sestatus
SELinux status: disabled
[root@mongo-cent ~]# getenforce
Disabled
This is on Centos 7 LXC.
Looks like selinux is disabled by default on all of the images. Any reason?
Just curious.
[root@mongo-cent ~]# sestatus
SELinux status: disabled
[root@mongo-cent ~]# getenforce
Disabled
This is on Centos 7 LXC.
Looks like selinux is disabled by default on all of the images. Any reason?
Just curious.
I’m also interested in this (alma9 host, incus 6.4, alma9 container). How do I enable SELinux in the container? It’s enabled on the host.
The container:
# cat /etc/redhat-release
AlmaLinux release 9.5 (Teal Serval)
# sestatus
SELinux status: disabled
# getenforce
Disabled
# cat /etc/sysconfig/selinux | grep ^SELINUX=
SELINUX=enforcing
If you’re using the lxd then this is not the place to ask for support @r3flow
I use Incus 6.4 from the fedora/copr repo on almalinux 9.
That’s not a particularly easy process right now.
You’d need to:
@mschiff has been doing a bunch of work related to that on Gentoo, you can find more details here Unable to add lxc rootfs mount options (context=)