*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: vfs_suser | Section: 9 | Source: FreeBSD | File: vfs_suser.9.gz
VFS_SUSER(9) FreeBSD Kernel Developer's Manual VFS_SUSER(9) 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 priv_check(9) would have returned. RETURN VALUES The vfs_suser() function returns 0 if the user has superuser powers and 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) HISTORY The vfs_suser() function was introduced in FreeBSD 5.2. AUTHORS This manual page was written by Alfred Perlstein. FreeBSD 14.1-RELEASE-p8 April 2, 2004 FreeBSD 14.1-RELEASE-p8

Navigation Options