From owner-freebsd-hackers Mon Apr 8 13:33:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id C52C237B405; Mon, 8 Apr 2002 13:33:44 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 8 Apr 2002 21:33:44 +0100 (BST) Date: Mon, 8 Apr 2002 21:33:41 +0100 From: David Malone To: Dan Nelson Cc: "Kurt J. Lidl" , Michael Smith , Doug White , =?iso-8859-1?Q?Pawe=B3?= Jakub Dawidek , freebsd-hackers@FreeBSD.ORG Subject: Re: Hardlinks... Message-ID: <20020408203341.GA61839@walton.maths.tcd.ie> References: <20020408113423.Y81506-100000@resnet.uoregon.edu> <200204081841.g38Ifi104580@mass.dis.org> <20020408144516.B2035@pix.net> <20020408194915.GA1749@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020408194915.GA1749@dan.emsphone.com> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 08, 2002 at 02:49:15PM -0500, Dan Nelson wrote: > .. or even if isn't, as someone might link it just before you delete > it. An attacker can still exhaust your inode quota with 0-length > files. > > I wonder if there is any reason to allow arbitrary hardlinking; maybe > only allow linking of files you currently have read access to? Only > files that you own? Only allow root to hardlink? How paranoid do you > want to be? :) It could always be another sysctl knob. I once wrote a patch to stop people making hardlinks to a file unless they were root or the file's owner. I ran with it for a bit and never noticed it being triggered. It probably should be a filesystem mount option, but we're out of them until the new mount code comes into use. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message