From owner-cvs-src@FreeBSD.ORG Sat Jun 14 23:46:25 2003 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 8CE6D37B401; Sat, 14 Jun 2003 23:46:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BA2243F85; Sat, 14 Jun 2003 23:46:25 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5F6kP0U078428; Sat, 14 Jun 2003 23:46:25 -0700 (PDT) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5F6kOn0078427; Sat, 14 Jun 2003 23:46:24 -0700 (PDT) Message-Id: <200306150646.h5F6kOn0078427@repoman.freebsd.org> From: Robert Watson Date: Sat, 14 Jun 2003 23:46:24 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/quota Makefile quota.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: Sun, 15 Jun 2003 06:46:26 -0000 rwatson 2003/06/14 23:46:24 PDT FreeBSD src repository Modified files: usr.bin/quota Makefile quota.c Log: Now that the kernel access control for quotactl(2) appears to work properly, clean up quota(1). quota(1) has the ability to query quotas either directly from the kernel, or if that fails, by reading the quota.user or quota.group files specified for the file system in /etc/fstab. The setuid bit existed solely (apparently) to let non-operator users query their quotas and consumption when quotas weren't enabled for the file system. o Remove the setuid bit from quota(1). o Remove the logic used by quota(1) when running setuid to prevent users from querying the quotas of other users or groups. Note that this papered over previously broken kernel access control. Revision Changes Path 1.5 +0 -1 src/usr.bin/quota/Makefile 1.19 +0 -17 src/usr.bin/quota/quota.c