The OpenNET Project / Index page

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

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

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

cr_cansee (9)
  • >> cr_cansee (9) ( FreeBSD man: Ядро )

  • BSD mandoc
     

    NAME

    cr_cansee
    
     - determine visibility of objects given their user credentials
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/systm.h>
       #include <sys/ucred.h>
    int cr_cansee (struct ucred *u1 struct ucred *u2);
     

    DESCRIPTION

    This function determines the visibility of objects in the kernel based on the real user IDs and group IDs in the credentials Fa u1 and Fa u2 associated with them.

    The visibility of objects is influenced by the sysctl(8) variables security.bsd.see_other_gids and security.bsd.see_other_uids as per the description in cr_seeothergids9 and cr_seeotheruids9 respectively.  

    RETURN VALUES

    This function returns zero if the object with credential Fa u1 can ``see'' the object with credential Fa u2 , or Er ESRCH otherwise.  

    ERRORS

    Bq Er ESRCH
    The object with credential Fa u1 cannot ``see'' the object with credential Fa u2 .
    Bq Er ESRCH
    The object with credential Fa u1 has been jailed and the object with credential Fa u2 does not belong to the same jail as Fa u1 .
    Bq Er ESRCH
    The MAC subsystem denied visibility.

     

    SEE ALSO

    cr_seeothergids9, cr_seeotheruids9, mac(9), p_cansee9


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO


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




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

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