The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    vfs_suser
    
     - check if credentials have superuser privileges for a mount point
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/systm.h>
       #include <sys/mount.h>
    int vfs_suser (struct mount *mp struct thread *td);
     

    DESCRIPTION

    The vfs_suser ();
    function checks if the credentials given include superuser powers for the given mount point. It will check to see if the thread passed in has the same credentials as the user that mounted the file system. If so, it returns 0, otherwise it returns what suser(9) would have returned.  

    RETURN VALUES

    The vfs_suser ();
    function returns 0 if the user has superuser powers and Er EPERM otherwise. This is the reverse logic of some other implementations of suser ();
    in which a TRUE response indicates superuser powers.  

    SEE ALSO

    chroot(2), jail(2), suser(9)  

    HISTORY

    The vfs_suser ();
    function was introduced in Fx 5.2 .  

    AUTHORS

    This manual page was written by An Alfred Perlstein .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO
    HISTORY
    AUTHORS


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




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

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