The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    acl_valid
    
     
    acl_valid_fd_np
    
     
    acl_valid_file_np
    
     
    acl_valid_link_np
    
     - validate an ACL
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/types.h>
       #include <sys/acl.h>
    int acl_valid (acl_t acl);
    int acl_valid_fd_np (int fd acl_type_t type acl_t acl);
    int acl_valid_file_np (const char *path_p acl_type_t type acl_t acl);
    int acl_valid_link_np (const char *path_p acl_type_t type acl_t acl);
     

    DESCRIPTION

    These functions check that the ACL referred to by the argument acl is valid. The POSIX.1e routine, acl_valid (,);
    checks this validity only with POSIX.1e ACL semantics, and irrespective of the context in which the ACL is to be used. The non-portable forms, acl_valid_fd_np (,);
    acl_valid_file_np (,);
    and acl_valid_link_np ();
    allow an ACL to be checked in the context of a specific acl type, type and file system object. In environments where additional ACL types are supported than just POSIX.1e, this makes more sense. Whereas acl_valid_file_np ();
    will follow the symlink if the specified path is to a symlink, acl_valid_link_np ();
    will not.

    For POSIX.1e semantics, the checks include:

    The POSIX.1e acl_valid ();
    function may reorder the ACL for the purposes of verification; the non-portable validation functions will not.  

    IMPLEMENTATION NOTES

    Fx Ns 's support for POSIX.1e interfaces and features is still under development at this time.  

    RETURN VALUES

    Rv -std  

    ERRORS

    If any of the following conditions occur, these functions shall return -1 and set errno to the corresponding value:

    Bq Er EACCES
    Search permission is denied for a component of the path prefix, or the object exists and the process does not have appropriate access rights.
    Bq Er EBADF
    The fd argument is not a valid file descriptor.
    Bq Er EINVAL
    Argument acl does not point to a valid ACL.

    One or more of the required ACL entries is not present in acl

    The ACL contains entries that are not unique.

    The file system rejects the ACL based on fs-specific semantics issues.

    Bq Er ENAMETOOLONG
    A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters.
    Bq Er ENOENT
    The named object does not exist, or the path_p argument points to an empty string.
    Bq Er ENOMEM
    Insufficient memory available to fulfill request.
    Bq Er EOPNOTSUPP
    The file system does not support ACL retrieval.

     

    SEE ALSO

    acl(3), acl_get3, acl_init3, acl_set3, posix1e(3)  

    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

    POSIX.1e support was introduced in Fx 4.0 , and development continues.  

    AUTHORS

    An Robert N M Watson


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    IMPLEMENTATION NOTES
    RETURN VALUES
    ERRORS
    SEE ALSO
    STANDARDS
    HISTORY
    AUTHORS


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




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

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