Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   security_disable    ( 3 )

отключить код ядра SELinux во время выполнения (disable the SELinux kernel code at runtime)

Имя (Name)

security_disable - disable the SELinux kernel code at runtime


Синопсис (Synopsis)

#include <selinux/selinux.h>

int security_disable(void);


Описание (Description)

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

This function 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).


Возвращаемое значение (Return value)

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