Thread (22 messages) 22 messages, 6 authors, 2020-11-04

Re: selinux: how to query if selinux is enabled

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 out
whether 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help