The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

mac_is_present (3)
  • >> mac_is_present (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    mac_is_present
    
     - report whether the running system has MAC support
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/mac.h>
    int mac_is_present (const char *policyname);
     

    DESCRIPTION

    The mac_is_present ();
    function determines whether the currently-running kernel supports MAC for a given policy or not. If Fa policyname is non- NULL the presence of the named policy (e.g. ``biba '' ``mls '' ``te '' is checked, otherwise the presence of any MAC policies at all is checked.  

    RETURN VALUES

    If the system supports the given MAC policy, the value 1 is returned. If the specified MAC policy is not supported, the value 0 is returned. If an error occurs, the value -1 is returned.  

    ERRORS

    Bq Er EINVAL
    The value of Fa policyname is not valid.
    Bq Er ENOMEM
    Insufficient memory was available to allocate internal storage.

     

    SEE ALSO

    mac(3), mac_free3, mac_get3, mac_prepare3, mac_set3, mac_text3, mac(4), mac(9)  

    HISTORY

    Support for Mandatory Access Control was introduced in Fx 5.0 as part of the TrustedBSD Project.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру