How can I check if SELinux is enabled?

ยท 1 minute long

While rolling out some infrastructure stuff, I needed to check if SELinux was enabled for some eBPF tooling which I was able to do like so on an Ubuntu machine

$ apt install policycoreutils
$ sestatus
SELinux status: disabled

Another alternative is the following:

$ apt install selinux-utils
$ getenforce
Disabled