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

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



   security_check_context    ( 3 )

проверить правильность контекста SELinux (check the validity of a SELinux context)

Имя (Name)

security_check_context - check the validity of a SELinux context


Синопсис (Synopsis)

#include <selinux/selinux.h>

int security_check_context(const char *con);

int security_check_context_raw(const char *con);


Описание (Description)

security_check_context() returns 0 if SELinux is running and the context is valid, otherwise it returns -1.

security_check_context_raw() behaves identically to security_check_context() but does not perform context translation.


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

selinux(8)