summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-08-16 19:52:03 +0000
committermarkm <markm@FreeBSD.org>2000-08-16 19:52:03 +0000
commit6e8b42e2050aa5a8bb3be12854092e771a3f28b7 (patch)
treebc0ea229ffd82c0f60eeeadb16c864ce2a45e974 /share
parent2a98230257c6162b8cc90eecd92245560d8f415b (diff)
downloadFreeBSD-src-6e8b42e2050aa5a8bb3be12854092e771a3f28b7.zip
FreeBSD-src-6e8b42e2050aa5a8bb3be12854092e771a3f28b7.tar.gz
Grammar police; make the English style more consistent throughout,
and give suser_xxx some more airtime.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/suser.930
1 files changed, 17 insertions, 13 deletions
diff --git a/share/man/man9/suser.9 b/share/man/man9/suser.9
index c38ddaf..7b3591d 100644
--- a/share/man/man9/suser.9
+++ b/share/man/man9/suser.9
@@ -37,8 +37,9 @@
.Dt SUSER 9
.Os FreeBSD
.Sh NAME
-.Nm suser
-.Nd check if we are superuser and note
+.Nm suser ,
+.Nm suser_xxx
+.Nd check if process has superuser privelige
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/proc.h>
@@ -46,16 +47,16 @@
.Ft int
.Fn suser "struct proc *proc"
.Ft int
-.Fn suser_xxx "struct ucred *cred, struct proc *proc, int flags"
+.Fn suser_xxx "struct ucred *cred" "struct proc *proc" "int flags"
.Sh DESCRIPTION
The
-.Nm
+.Nm suser
and
.Nm suser_xxx
functions checks if the credentials given include superuser powers.
.Pp
The
-.Nm
+.Nm suser
function is the most common, and should be used unless special
circumstances dictate otherwise.
.Pp
@@ -83,23 +84,26 @@ implicit in
call should such powers be granted.
.Pp
The
-.Nm
+.Nm suser
and
.Nm suser_xxx
-functions notes the fact that superuser powers have been used in the
+functions note the fact that superuser powers have been used in the
process structure of the process specified.
-Because part of its function is to notice
-whether super powers have been used,
+Because part of their function is to notice
+whether superuser powers have been used,
the functions should only be called after other permission
possibilities have been exhausted.
.Sh RETURN VALUES
The
-.Nm
+.Nm suser
and
.Nm suser_xxx
-functions returns 0 if the user has super powers and EPERM otherwise.
+functions return 0 if the user has superuser powers and EPERM otherwise.
This is the
.Em reverse logic
of some other implementations of
-.Nm
-in which a TRUE response indicates Super powers.
+.Nm suser
+in which a TRUE response indicates superuser powers.
+.Sh SEE ALSO
+.Xr chroot 2 ,
+.Xr jail 2
OpenPOWER on IntegriCloud