From owner-cvs-sys Mon Mar 31 05:36:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA17773 for cvs-sys-outgoing; Mon, 31 Mar 1997 05:36:50 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA17766; Mon, 31 Mar 1997 05:36:48 -0800 (PST) Date: Mon, 31 Mar 1997 05:36:48 -0800 (PST) From: Peter Wemm Message-Id: <199703311336.FAA17766@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern kern_prot.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/03/31 05:36:47 Modified: sys/kern kern_prot.c Log: Fully implement the clause in Appendix B.4.2.2 from Posix 1003.1 that allows traditional BSD setuid/setgid behavior. The only visible difference should be that a non-root setuid program (eg: inn's "rnews" program) that is setuid to news, can completely "become" uid news. (ie: setuid(geteuid()) This was allowed in traditional 4.2/4.3BSD and is now "blessed" by Posix as a special case of "appropriate privilige". Also, be much more careful with the P_SUGID flag so that we can use it for issetugid() - only set it if something changed. Reviewed by: ache Revision Changes Path 1.28 +132 -31 src/sys/kern/kern_prot.c