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

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



   selinux_getenforcemode    ( 3 )

получить принудительное состояние SELinux (get the enforcing state of SELinux)

Имя (Name)

selinux_getenforcemode - get the enforcing state of SELinux


Синопсис (Synopsis)

#include <selinux/selinux.h>

int selinux_getenforcemode(int *enforce);


Описание (Description)

selinux_getenforcemode() Reads the contents of the /etc/selinux/config file to determine how the system was setup to run SELinux.

Sets the value of enforce to 1 if SELinux should be run in enforcing mode. Sets the value of enforce to 0 if SELinux should be run in permissive mode. Sets the value of enforce to -1 if SELinux should be disabled.


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

On success, zero is returned. On failure, -1 is returned.


Смотри также (See also)

selinux(8)