Re: selinux: how to query if selinux is enabled
From: Olga Kornievskaia <hidden>
Date: 2020-10-08 17:40:51
From: Olga Kornievskaia <hidden>
Date: 2020-10-08 17:40:51
On Thu, Oct 8, 2020 at 1:06 PM Casey Schaufler [off-list ref] wrote:
On 10/7/2020 5:40 PM, Olga Kornievskaia wrote:quoted
Hi folks,quoted
From some linux kernel module, is it possible to query and find outwhether or not selinux is currently enabled or not?% cat /sys/kernel/security/lsm capability,yamma,selinux
Thank you Casey, but it's frowned upon to read files from within a kernel. I'm looking for a kernel api to use.
quoted
Thank you.