From owner-freebsd-current Mon Jan 18 14:21:12 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA22536 for freebsd-current-outgoing; Mon, 18 Jan 1999 14:21:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA22520 for ; Mon, 18 Jan 1999 14:21:07 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id JAA18722; Tue, 19 Jan 1999 09:21:00 +1100 Date: Tue, 19 Jan 1999 09:21:00 +1100 From: Bruce Evans Message-Id: <199901182221.JAA18722@godzilla.zeta.org.au> To: green@unixhelp.org, mike@smith.net.au Subject: Re: kernel malloc and M_CANWAIT Cc: current@FreeBSD.ORG, dillon@apollo.backplane.com, julian@whistle.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Look at the void () functions that call malloc/MALLOC. Also, commit the >attached patch; it was OKed by Bruce to disallow this, but he seems to forget >to commit it. It is queued behind 10-100 other patches. >--- src/sys/kern/vfs_syscalls.c.orig Fri Dec 25 22:27:21 1998 >+++ src/sys/kern/vfs_syscalls.c Fri Dec 25 22:28:12 1998 >@@ -2909,6 +2909,10 @@ > if (error = namei(&nd)) > return (error); > vp = nd.ni_vp; >+ if (vp->v_type == VFIFO) { >+ error = EINVAL; >+ goto out; >+ } > if (error = VOP_GETATTR(vp, &vattr, p->p_ucred, p)) > goto out; > if (p->p_ucred->cr_uid != vattr.va_uid && Actually, the patch from Lite1 is queued. It also backs out support for revoke of everything except cdevs and bdevs. I don't have time to check what happens for regular files, pipes and sockets... Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message