From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 12 23:12:48 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39AD416A41B; Mon, 12 Nov 2007 23:12:48 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4C813C4B0; Mon, 12 Nov 2007 23:12:46 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id lACMbAHF022013; Tue, 13 Nov 2007 01:37:10 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Tue, 13 Nov 2007 01:37:10 +0300 (MSK) From: Dmitry Morozovsky To: Yuri In-Reply-To: <1194906161.4738d231c0fe4@webmail.rawbw.com> Message-ID: <20071113013546.B16082@woozle.rinet.ru> References: <1194896018.4738aa922f776@webmail.rawbw.com> <20071112214243.Y81124@fledge.watson.org> <1194906161.4738d231c0fe4@webmail.rawbw.com> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Tue, 13 Nov 2007 01:37:10 +0300 (MSK) Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: How to get filename of an open file descriptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2007 23:12:48 -0000 On Mon, 12 Nov 2007, Yuri wrote: Y> I looked at the patch. It retrieves file description information through Y> 'sysctl' calls with proprietary keys. Y> Y> Isn't it better architecturally to expose the same information through procfs Y> interface? At least from the filesystem level and up standard tools like ls/cat Y> will be able to show the the same information instead of the specialized utility. IIRC, procfs interface (and existing procfs implementation in particular) has been mostly dropped due to various privilege escalation vulnerabilities existed in the past. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------