Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759985AbXKTPSA (ORCPT ); Tue, 20 Nov 2007 10:18:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757446AbXKTPRl (ORCPT ); Tue, 20 Nov 2007 10:17:41 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:60549 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757376AbXKTPRk (ORCPT ); Tue, 20 Nov 2007 10:17:40 -0500 Date: Tue, 20 Nov 2007 15:17:31 +0000 From: Christoph Hellwig To: Stephen Smalley Cc: Christoph Hellwig , Alexey Dobriyan , akpm@osdl.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, devel@openvz.org, James Morris , Eric Paris Subject: Re: [PATCH 1/4] proc: fix NULL ->i_fop oops Message-ID: <20071120151731.GA20322@infradead.org> References: <20071116150651.GC19517@localhost.sw.ru> <20071119125139.GB15942@infradead.org> <1195571105.20910.31.camel@moss-spartans.epoch.ncsc.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1195571105.20910.31.camel@moss-spartans.epoch.ncsc.mil> User-Agent: Mutt/1.4.2.3i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 21 On Tue, Nov 20, 2007 at 10:05:05AM -0500, Stephen Smalley wrote: > > Nice, getting rid of this is a very good step formwards. Unfortunately > > we have another copy of this junk in > > security/selinux/selinuxfs.c:sel_remove_entries() which would need the > > same treatment. > > Can't just be dropped completely for selinux - we need a way to drop > obsolete entries from the prior policy when we load a new policy. > > Is the only real problem here the clearing of f_op? If so, we can > likely remove that from sel_remove_entries() without harm, and fix the > checks for it to use something more reliable. f_op removal is the biggest issue. It can't really work and this is the last instance. But in general having some half-backed attempts at revoke is never a good idea. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/