The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    mac_from_text
    
     
    mac_to_text
    
     - convert MAC label to/from text representation
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/mac.h>
    int mac_from_text (mac_t *mac const char *text);
    int mac_to_text (mac_t label char **text);
     

    DESCRIPTION

    The mac_from_text ();
    function converts the text representation of a label into the internal policy label format (Vt mac_t ) and places it in Fa *mac , which must later be freed with free(3).

    The mac_to_text ();
    function allocates storage for Fa *text , which will be set to the text representation of Fa label .

    Refer to maclabel(7) for the MAC label format.  

    RETURN VALUES

    Rv -std mac_from_text mac_to_text  

    COMPATIBILITY

    POSIX.1e does not define a format for text representations of MAC labels.

    POSIX.1e requires that text strings allocated using mac_to_text ();
    be freed using mac_free3; in the Fx implementation, they must be freed using free(3), as mac_free3 is used only to free memory used for type Vt mac_t .  

    ERRORS

    Bq Er ENOMEM
    Insufficient memory was available to allocate internal storage.

     

    SEE ALSO

    free(3), mac(3), mac_get3, mac_is_present3, mac_prepare3, mac_set3, mac(4), 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.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    COMPATIBILITY
    ERRORS
    SEE ALSO
    STANDARDS
    HISTORY


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




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

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