Update for suser(9)

Matthias Schmidt schmidtm at mathematik.uni-marburg.de
Fri Sep 30 06:40:01 PDT 2005


Hi,

it seems that suser_proc() is gone from the tree (the only occurrence I 
found was a #define in sys/sys/proc.h (line 409)), but the description 
is still present in suser(9).

The attached patch updates suser(9) and the Makefile, but not 
sys/sys/proc.h.

	Matthias
diff -urN share.orig/man/man9/Makefile share/man/man9/Makefile
--- share.orig/man/man9/Makefile	2005-09-30 14:53:02.000000000 +0200
+++ share/man/man9/Makefile	2005-09-30 14:58:33.000000000 +0200
@@ -199,7 +199,6 @@
 MLINKS+=spl.9 splstatclock.9 spl.9 spltty.9 spl.9 splvm.9 spl.9 splx.9
 MLINKS+=store.9 subyte.9 store.9 suswintr.9 store.9 susword.9 store.9 suword.9
 MLINKS+=suser.9 suser_cred.9
-MLINKS+=suser.9 suser_proc.9
 MLINKS+=time.9 boottime.9 time.9 mono_time.9 time.9 runtime.9
 MLINKS+=timeout.9 untimeout.9
 MLINKS+=timeout.9 callout_handle_init.9 timeout.9 callout_init.9
diff -urN share.orig/man/man9/suser.9 share/man/man9/suser.9
--- share.orig/man/man9/suser.9	2005-09-30 14:53:03.000000000 +0200
+++ share/man/man9/suser.9	2005-09-30 14:56:36.000000000 +0200
@@ -40,8 +40,7 @@
 .Os
 .Sh NAME
 .Nm suser ,
-.Nm suser_cred ,
-.Nm suser_proc
+.Nm suser_cred
 .Nd check for credentials for superuser privilege
 .Sh SYNOPSIS
 .In sys/param.h
@@ -51,8 +50,6 @@
 .Fn suser "struct thread *td"
 .Ft int
 .Fn suser_cred "struct ucred *cred" "int flags"
-.Ft int
-.Fn suser_proc "struct proc *p"
 .Sh DESCRIPTION
 The
 .Nm
@@ -72,10 +69,6 @@
 not the process' own, when there is no process or when superuser
 privilege should be extended to imprisoned roots.
 .Pp
-The
-.Fn suser_proc
-function is used when the credentials to be checked are of a
-different process.
 .Pp
 By default a process does not command superuser privilege if it has
 been imprisoned by the
@@ -96,10 +89,9 @@
 call should such privilege be granted.
 .Pp
 The
-.Fn suser ,
-.Fn suser_cred
+.Fn suser
 and
-.Fn suser_proc
+.Fn suser_cred
 functions note the fact that superuser powers have been used in the
 process structure of the process specified.
 Because part of their function is to notice
@@ -108,10 +100,9 @@
 possibilities have been exhausted.
 .Sh RETURN VALUES
 The
-.Fn suser ,
-.Fn suser_cred
+.Fn suser
 and
-.Fn suser_proc
+.Fn suser_cred
 functions return
 .Li 0
 if the user has superuser privilege and




More information about the Submit mailing list