From owner-freebsd-hackers Wed Nov 29 10: 9:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 13B0D37B400 for ; Wed, 29 Nov 2000 10:09:29 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eATI9RQ67316 for ; Wed, 29 Nov 2000 11:09:28 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id LAA20795 for ; Wed, 29 Nov 2000 11:09:27 -0700 (MST) Message-Id: <200011291809.LAA20795@harmony.village.org> To: hackers@freebsd.org Subject: Doc change sanity check Date: Wed, 29 Nov 2000 11:09:27 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In talking to the NetBSD folks, I have discoverd that the documentation for setre[gu]id doesn't match the code in FreeBSD. Before I commit the following changes to are docs, can someone please make sure that the actual code in the kernel does what I say it does in the change? My reading of the code is that it does this, but I think that it would be good to have another set of eyes reading it. I got these changes from the NetBSD man pages. Comments? Warner Index: setregid.2 =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/sys/setregid.2,v retrieving revision 1.8 diff -u -r1.8 setregid.2 --- setregid.2 2000/05/04 13:09:20 1.8 +++ setregid.2 2000/11/29 18:06:36 @@ -47,6 +47,9 @@ .Sh DESCRIPTION The real and effective group ID's of the current process are set to the arguments. +If the real group ID is changed, the saved group ID is changed to the +new value of the effective group ID. +.Pp Unprivileged users may change the real group ID to the effective group ID and vice-versa; only the super-user may make other changes. Index: setreuid.2 =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/sys/setreuid.2,v retrieving revision 1.8 diff -u -r1.8 setreuid.2 --- setreuid.2 2000/05/04 13:09:20 1.8 +++ setreuid.2 2000/11/29 18:06:36 @@ -47,6 +47,9 @@ .Sh DESCRIPTION The real and effective user IDs of the current process are set according to the arguments. +If the real user ID is changed, the saved user ID is changed to the +new value of the effective user ID. +.Pp If .Fa ruid or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message