Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755135AbYJTTlU (ORCPT ); Mon, 20 Oct 2008 15:41:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753297AbYJTTlL (ORCPT ); Mon, 20 Oct 2008 15:41:11 -0400 Received: from mail8.dotsterhost.com ([66.11.233.1]:33142 "HELO mail8.dotsterhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753057AbYJTTlK (ORCPT ); Mon, 20 Oct 2008 15:41:10 -0400 Message-ID: <20081020193428.8k6ottvjfc1woscw@webmail8.dotsterhost.com> Date: Mon, 20 Oct 2008 19:34:28 +0000 From: crispin@crispincowan.com To: Shaya Potter Cc: Kentaro Takeda , Stephen Smalley , James Morris , Chris Wright , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Toshiharu Harada , Andrew Morton , Tetsuo Handa , Al Viro , Christoph Hellwig , Casey Schaufler Subject: Re: [TOMOYO #11 (linux-next) 01/11] Introduce new LSM hooks where vfsmount is available. References: <20081020073423.024299308@nttdata.co.jp> <20081020073643.986810046@nttdata.co.jp> <48FC7938.1070906@cs.columbia.edu> In-Reply-To: <48FC7938.1070906@cs.columbia.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 30 Quoting Shaya Potter : > I know I'm late to the game in this, but as I recently asked about this > and didn't get an answer, I'll re-ask my approach. > > Why can't you do this > > in lookup() > > - resolve rules (not for single process, but for all processes) for > said path and tag dentry (seem to already have a hook) > > in permission() Because it doesn't work http://kerneltrap.org/mailarchive/linux-fsdevel/2007/6/8/319446 Quick summary: The difference between the pathname model and the label model is dynamism. The accessi really is determined by the pathname to the file that you used to access the file. If you try to compute access based on attributes tagged onto the file, then you have to re-compute those attributes every time someone renames a file. Crispin -- 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/