From owner-cvs-src@FreeBSD.ORG Thu Jul 6 21:32:25 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6812C16A4E1; Thu, 6 Jul 2006 21:32:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1044543D7B; Thu, 6 Jul 2006 21:32:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k66LWKx6050012; Thu, 6 Jul 2006 21:32:20 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k66LWK6B050010; Thu, 6 Jul 2006 21:32:20 GMT (envelope-from jhb) Message-Id: <200607062132.k66LWK6B050010@repoman.freebsd.org> From: John Baldwin Date: Thu, 6 Jul 2006 21:32:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_prot.c src/sys/sys syscallsubr.h src/sys/i386/ibcs2 ibcs2_misc.c syscalls.xenix X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 21:32:25 -0000 jhb 2006-07-06 21:32:20 UTC FreeBSD src repository Modified files: sys/kern kern_prot.c sys/sys syscallsubr.h sys/i386/ibcs2 ibcs2_misc.c syscalls.xenix Log: Add kern_setgroups() and kern_getgroups() and use them to implement ibcs2_[gs]etgroups() rather than using the stackgap. This also makes ibcs2_[gs]etgroups() MPSAFE. Also, it cleans up one bit of weirdness in the old setgroups() where it allocated an entire credential just so it had a place to copy the group list into. Now setgroups just allocates a NGROUPS_MAX array on the stack that it copies into and then passes to kern_setgroups(). Revision Changes Path 1.63 +25 -42 src/sys/i386/ibcs2/ibcs2_misc.c 1.12 +2 -2 src/sys/i386/ibcs2/syscalls.xenix 1.203 +43 -26 src/sys/kern/kern_prot.c 1.39 +2 -0 src/sys/sys/syscallsubr.h