[Linux Kernel] Selinux: selinux_enforcing_boot

Guillermo Austin Kim|2021년 5월 6일
Posts

[Linux Kernel] Selinux: selinux_enforcing_boot

Guillermo Austin Kim|2021년 5월 6일

selinux_enforcing_boot is configured within enforcing_setup(). CONFIG_SECURITY_SELINUX_DEVELOPstatic int selinux_enforcing_boot; static int __init enforcing_setup(char *str){ unsigned long enforcing; if (!kstrtoul(str, 0, &enforcing)) selinux_enforcing_boot = enforcing ? 1 : 0; return 1;}__setup("enforcing=", enforcing_setup);#else#define selinux_enforcing_boot 1#endif If you would like to