GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  VFS_SUSER (9)

NAME

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

CONTENTS

Synopsis
Description
Return Values
See Also
History
Authors

SYNOPSIS


.In sys/param.h
.In sys/systm.h
.In 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
.Fx 5.2 .

AUTHORS

This manual page was written by
.An Alfred Perlstein .
Search for    or go to Top of page |  Section 9 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.