From owner-freebsd-stable Sat Aug 8 12:28:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17038 for freebsd-stable-outgoing; Sat, 8 Aug 1998 12:28:48 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from mail.kersur.net (mail.kersur.net [199.79.199.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA17022 for ; Sat, 8 Aug 1998 12:28:40 -0700 (PDT) (envelope-from dswartz@druber.com) Received: from manticore (manticore.druber.com [207.180.95.108]) by mail.kersur.net (8.8.8/8.8.8) with SMTP id PAA03141; Sat, 8 Aug 1998 15:28:06 -0400 (EDT) Message-Id: <3.0.5.32.19980808152803.0094d820@mail.kersur.net> X-Sender: druber@mail.kersur.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sat, 08 Aug 1998 15:28:03 -0400 To: Tom From: Dan Swartzendruber Subject: Re: Quota bug crashing system? Cc: Joe Gleason , freebsd-stable@FreeBSD.ORG In-Reply-To: References: <003c01bdc2d8$72827a40$0171a1ce@bug.tasam.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 10:24 AM 8/8/98 -0700, Tom wrote: > >On Sat, 8 Aug 1998, Joe Gleason wrote: > >> > Crash how? I only remove stale home directories every couple of months. >> >> I'm not sure, the system is always at my ISP, so I am never looking at it >> when it happens. It seems like a kernel panic. > > What make you think quotas are doing this, and not something like >hardware? Speaking of quotas, maybe someone can enlighten me on a quota related issue: it seems that (at least as some 6 months or so ago), 2.2 didn't correctly handle SUID programs. e.g. if a SUID root process has done setuid() (whichever flavor) to some less privileged UID, the original (root) quota continues to apply. This is arguably a bug. From what I can tell looking at the code, the decision about whether an allocation request exceeds quota is done by looking at a token which was set up much earlier in the game (and doesn't seem to be updated based on changing of the current UID). I got burned by this when I tried to use quotas on a /var/mail filesystem to enforce a per user limit for mailboxes. I opened a PR way back when I discovered this, and it seems to have gone into the bit bucket :( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message