From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755330Ab0CHSpm (ORCPT ); Mon, 8 Mar 2010 13:45:42 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:51506 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754691Ab0CHSpg (ORCPT ); Mon, 8 Mar 2010 13:45:36 -0500 Date: Mon, 8 Mar 2010 18:45:21 +0000 From: Al Viro To: Linus Torvalds Cc: Alan Cox , Ingo Molnar , James Morris , linux-kernel@vger.kernel.org, Kyle McMartin , Alexander Viro Subject: Re: Upstream first policy Message-ID: <20100308184521.GK30031@ZenIV.linux.org.uk> References: <20100308094647.GA14268@elte.hu> <20100308173008.7ae389ab@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2010 at 10:08:31AM -0800, Linus Torvalds wrote: > In other words: it really _does_ make more sense to say "this process has > rights to overwrite the path '/etc/passwd'" than it does to try to label > the file. The _fundamental_ rule is about the pathname. The labeling comes > about BECAUSE YOU USED A HAMMER FOR A SCREW. > > I really don't understand why some people are unable to admit this fact. Because you don't have to use that pathname to modify the bits returned by read() after open() on that pathname? I'm not fond of selinux, to put it mildly, but "pathname-based" stuff simply doesn't match how the pathname resolution is defined on Unix...