The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    mac_prepare , mac_prepare_type , mac_prepare_file_label
    
     
    mac_prepare_ifnet_label , mac_prepare_process_label
    
     - allocate appropriate storage for
    
    Vt mac_t
    
     
    

    SYNOPSIS

       #include <sys/mac.h>
    int mac_prepare (mac_t *mac const char *elements);
    int mac_prepare_type (mac_t *mac const char *name);
    int mac_prepare_file_label (mac_t *mac);
    int mac_prepare_ifnet_label (mac_t *mac);
    int mac_prepare_process_label (mac_t *mac);
     

    DESCRIPTION

    The family of functions allocates the appropriate amount of storage and initializes Fa *mac for use by mac_get3. When the resulting label is passed into the mac_get3 functions, the kernel will attempt to fill in the label elements specified when the label was prepared. Elements are specified in a nul-terminated string, using commas to delimit fields. Element names may be prefixed with the ? character to indicate that a failure by the kernel to retrieve that element should not be considered fatal.

    The mac_prepare ();
    function accepts a list of policy names as a parameter, and allocates the storage to fit those label elements accordingly. The remaining functions in the family make use of system defaults defined in mac.conf5 instead of an explicit elements argument, deriving the default from the specified object type.

    mac_prepare_type ();
    allocates the storage to fit an object label of the type specified by the name argument. The mac_prepare_file_label (,);
    mac_prepare_ifnet_label (,);
    and mac_prepare_process_label ();
    functions are equivalent to invocations of mac_prepare_type ();
    with arguments of Qq file , Qq ifnet , and Qq process respectively.  

    RETURN VALUES

    Rv -std  

    SEE ALSO

    mac(3), mac_free3, mac_get3, mac_is_present3, mac_set3, mac(4), mac.conf5, maclabel(7)  

    STANDARDS

    POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the Fx POSIX.1e implementation page for more information.  

    HISTORY

    Support for Mandatory Access Control was introduced in Fx 5.0 as part of the TrustedBSD Project. Support for generic object types first appeared in Fx 5.2 .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO
    STANDARDS
    HISTORY


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




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

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