From owner-cvs-src@FreeBSD.ORG Mon Jul 26 07:54:39 2004 Return-Path: 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 D066116A4CE; Mon, 26 Jul 2004 07:54:39 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0C9E43D45; Mon, 26 Jul 2004 07:54:39 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6Q7sdpr073895; Mon, 26 Jul 2004 07:54:39 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6Q7sdIH073894; Mon, 26 Jul 2004 07:54:39 GMT (envelope-from cperciva) Message-Id: <200407260754.i6Q7sdIH073894@repoman.freebsd.org> From: Colin Percival Date: Mon, 26 Jul 2004 07:54:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_fork.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 26 Jul 2004 07:54:40 -0000 cperciva 2004-07-26 07:54:39 UTC FreeBSD src repository Modified files: sys/kern kern_fork.c Log: In revision 1.228, I accidentally broke the "total number of processes in the system" resource limit code: When checking if the caller has superuser privileges, we should be checking the *real* user, not the *effective* user. (In general, resource limiting is done based on the real user, in order to avoid resource-exhaustion-by-setuid-program attacks.) Now that a SUSER_RUID flag to suser_cred exists, use it here to return this code to its correct behaviour. Pointed out by: rwatson Revision Changes Path 1.231 +2 -1 src/sys/kern/kern_fork.c