From owner-freebsd-fs@FreeBSD.ORG Mon Feb 21 17:07:55 2011 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC9601065672 for ; Mon, 21 Feb 2011 17:07:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5CE138FC18 for ; Mon, 21 Feb 2011 17:07:55 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p1LH7cw5075661; Mon, 21 Feb 2011 18:07:53 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p1LH7c8n075660; Mon, 21 Feb 2011 18:07:38 +0100 (CET) (envelope-from olli) Date: Mon, 21 Feb 2011 18:07:38 +0100 (CET) Message-Id: <201102211707.p1LH7c8n075660@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, kellydeanch@yahoo.com In-Reply-To: <457880.36028.qm@web121501.mail.ne1.yahoo.com> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Mon, 21 Feb 2011 18:07:53 +0100 (CET) Cc: Subject: Re: Why is procfs deprecated in favor of procstat? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, kellydeanch@yahoo.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 17:07:55 -0000 Kelly Dean wrote: > http://ivoras.sharanet.org/freebsd/freebsd8.html says that > procfs is deprecated in favor of procstat. But Plan 9 says > that procfs is the right way to do things. Linux says the same. But it's irrelevant what they say. FreeBSD is not Plan 9, and FreeBSD is not Linux. Procfs has a long history of security vulnerabilities and other problems. I do not mount procfs on most machines I'm responsible for, especially not on machines that have user accounts or services that are not restricted to jails. I also think it is inefficient to let the kernel render data to ASCII, and then have userland tools parse that ASCII data again. That's ridiculous. There is no sane reason for putting kernel data as ASCII text into a pseudo file system. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz