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

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



   selinux_getpolicytype    ( 3 )

получить тип политики SELinux, работающей в системе (get the type of SELinux policy running on the system)

Имя (Name)

selinux_getpolicytype - get the type of SELinux policy running on the system


Синопсис (Synopsis)

#include <selinux/selinux.h>

int selinux_getpolicytype(char **policytype);


Описание (Description)

selinux_getpolicytype() Reads the contents of the /etc/selinux/config file to determine the SELinux policy used on the system, and sets policytype accordingly. Free policytype with free(3).


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

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


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

selinux(8)