From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754936Ab1KGX2E (ORCPT ); Mon, 7 Nov 2011 18:28:04 -0500 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:56364 "EHLO out3.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137Ab1KGX2B (ORCPT ); Mon, 7 Nov 2011 18:28:01 -0500 X-Sasl-enc: dkC4X6dfUcadnR6J7SolQtnq0KXCLjpJS+9obXr1sVod 1320708480 Date: Mon, 7 Nov 2011 15:27:50 -0800 From: Greg KH To: Alan Cox Cc: Linus Torvalds , "H. Peter Anvin" , Vasiliy Kulikov , Eric Paris , kernel-hardening@lists.openwall.com, Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org, Alexey Dobriyan , Andrew Morton , linux-security-module@vger.kernel.org Subject: Re: [kernel-hardening] Re: [PATCH] proc: restrict access to /proc/interrupts Message-ID: <20111107232750.GA4854@kroah.com> References: <4EB82F08.8060209@zytor.com> <20111107192915.GA4690@albatros> <4EB83674.3040207@zytor.com> <20111107201120.GA5775@albatros> <4EB843FF.5080201@zytor.com> <4EB84F05.1000704@zytor.com> <20111107232132.2c6880a5@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111107232132.2c6880a5@lxorguk.ukuu.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2011 at 11:21:32PM +0000, Alan Cox wrote: > > It's better than nothing, but it really isn't wonderful - because it's > > really not just about audio. And revoke doesn't work universally. > > BSD invented revoke but never implemented it universally. It turns out > that this isn't a big problem. Right now we basically only have revoke > for tty devices but we don't need it for that much more. Revoke on disk > files and the like has simply never happened because its not a matter of > revoke being universal so much as universal revoke being universally > pointless. I looked into implementing revoke() a while ago, and looked at how BSD did it. They really only implemented it for a very narrow range of devices (tty only I think), which is not what we really want. I thought people wanted it for all char and block devices, if this isn't so, then it might be easier to implement than I thought. So, what do we really need revoke() for these days? But that's getting away from the original topic here, sorry... greg k-h