From owner-freebsd-fs@FreeBSD.ORG Tue Feb 22 08:59:16 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 98CFF106566B for ; Tue, 22 Feb 2011 08:59:16 +0000 (UTC) (envelope-from kellydeanch@yahoo.com) Received: from nm26.bullet.mail.ac4.yahoo.com (nm26.bullet.mail.ac4.yahoo.com [98.139.52.223]) by mx1.freebsd.org (Postfix) with SMTP id 2032A8FC15 for ; Tue, 22 Feb 2011 08:59:15 +0000 (UTC) Received: from [98.139.52.190] by nm26.bullet.mail.ac4.yahoo.com with NNFMP; 22 Feb 2011 08:45:37 -0000 Received: from [98.139.52.153] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 22 Feb 2011 08:45:37 -0000 Received: from [127.0.0.1] by omp1036.mail.ac4.yahoo.com with NNFMP; 22 Feb 2011 08:45:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 12208.83416.bm@omp1036.mail.ac4.yahoo.com Received: (qmail 58547 invoked by uid 60001); 22 Feb 2011 08:45:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298364336; bh=7s1amI0p4AigdhJ3DrwV9mReJNHAAP/Sd+lNyb9rWqM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=f2ZyINmcXwESpVIY/1eSEyiNcDqE0lUk3CL4nZzrWZwb+3GJdDyq5GvIiW8xErsUOMfj7p2zViIKY4hI/yKcD8QN7R2wThjcgxA0icTIv9oiJe8gBOEhpDJPr5B6rZ+lC7+nVmBu6ixqw2fTSniLCAGM0mhag/GIlUrQZci5T6I= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=FO+8NmI++gOHMxsRTHreVPH35HMdMMDbjerU36TDuFzGRei6XvGVrUitj1c2q35pueB4SiSBoawMfbeYodkNFVpmw5GwrdajwbN15AnUsz+yIqyPraESIHDXimgsJr3zLq3pjmAKY88fRGugtF7xU1Xzi8sOHl7+VAs2Igw/1W4=; Message-ID: <476667.58379.qm@web121516.mail.ne1.yahoo.com> X-YMail-OSG: Y2AaFAQVM1m4GQDYLB4gsaAvLZIMBvv9lLnXaa08hSwvbpi lUDiG.iY8vS6WJtOU1ycXktlpt7EMcXhT6qcv7fQx9Oph02pfTsmsC9.Zhdf FqNF0LZlcV7h939xIcn6rKzxIMhyhQyd.02SmQuohh8sqhwoKn_vSzwzf4YE 0p7vyvIX5EDT6W3eDjG6MO4qyu__CJYZMW.wq8Q-- Received: from [192.251.226.205] by web121516.mail.ne1.yahoo.com via HTTP; Tue, 22 Feb 2011 00:45:36 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.292656 Date: Tue, 22 Feb 2011 00:45:36 -0800 (PST) From: Kelly Dean To: freebsd-fs@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 08:59:16 -0000 I see five different issues, so I need to clarify which one I was asking about. 1. How to request the data in question from the kernel: by reading a file, or by making a dedicated system call. Jeremy says read a file. 2. The format the kernel returns the data in. Oliver says the Plan 9 way of the kernel rendering text and then userland tools parsing text is silly. The kernel should return binary, which userland tools can then use directly, or render to text for a person to read. 3. Conflating /proc with Jeremy's /sysctl. 4. Whether /proc and/or /sysctl should be read-only. 5. Whether things in different security domains should see the same procfs. The question I meant to ask was just the first one. What's wrong with requesting the data by reading a file instead of making a dedicated system call? What's the advantage of the system call? But since the other issues came up: 2, I agree the kernel should return binary. 3, separate /proc and /sysctl. 4, no comment. 5, Oliver, didn't you answer your own objection? If things are supposed to be in the same security domain, then there can't be a vulnerability caused by them sharing a common procfs, and if they're supposed to be in different security domains, then put them in jails, where they don't share a common procfs. Jeremy, when you said procfs should be removed, did you mean just for the same reasons Oliver said, or did you have other reasons?