From owner-freebsd-bugs Sat Jan 3 21:40:04 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA02773 for bugs-outgoing; Sat, 3 Jan 1998 21:40:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA02749; Sat, 3 Jan 1998 21:40:01 -0800 (PST) (envelope-from gnats) Date: Sat, 3 Jan 1998 21:40:01 -0800 (PST) Message-Id: <199801040540.VAA02749@hub.freebsd.org> To: freebsd-bugs Cc: From: Dan Swartzendruber Subject: Re: kern/5285: quotas do not work properly with setuid programs. Reply-To: Dan Swartzendruber Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5285; it has been noted by GNATS. From: Dan Swartzendruber To: freebsd-gnats-submit@freebsd.org, dswartz@druber.com Cc: Subject: Re: kern/5285: quotas do not work properly with setuid programs. Date: Sun, 04 Jan 1998 00:33:47 -0500 I've had some time to poke through the kernel sources, and it sure looks like ufs_quota and company are checking the effective UID (that is what cr_uid is, no?) I don't yet understand why that was zero in the case of my test program (I proved this also by adding a kernel printf just to make sure, and it did print 0). --- Swartzendruber Consulting, Inc.