logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

security_disable - disable the SELinux kernel code at runtime

Author

       This manual page has been written by Guido Trentalancia <guido@trentalancia.com>

Description

security_disable()  disables  the  SELinux kernel code, unregisters selinuxfs from /proc/filesystems, and
       then unmounts /sys/fs/selinux.

       This function is only supported on Linux 6.3 and earlier, and can only be called at runtime and prior  to
       the  initial  policy load. After the initial policy load, the SELinux kernel code cannot be disabled, but
       only placed in "permissive" mode by using security_setenforce(3).

Name

       security_disable - disable the SELinux kernel code at runtime

Return Value

security_disable() returns zero on success or -1 on error.

See Also

selinux(8), setenforce (8)

                                                   21 Nov 2009                               security_disable(3)

Synopsis

#include<selinux/selinux.h>intsecurity_disable(void);

See Also