VFS_SUSER(9)
π NAME π
okay so this is VFS_SUSER(9), the Kernel Developer's Manual page for vfs_suser β the function that checks 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. no cap. β¨
π RETURN VALUES π
The vfs_suser() function returns 0 if the user has superuser powers and EPERM otherwise.
bestie be careful: this is the reverse logic of some other implementations ofsuser()in which aTRUEresponse indicates superuser powers. π
π¦ SEE ALSO π¦
π₯ HISTORY π₯
The vfs_suser() function was introduced in FreeBSD 5.2. π
π AUTHORS π
This manual page was written by Alfred Perlstein. π«Ά
kisses bestie, this page comes from Debian, dated April 2, 2004, and itβs VFS_SUSER(9) π
β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2004 Alfred Perlstein
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms