Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759452AbXFPBrP (ORCPT ); Fri, 15 Jun 2007 21:47:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757731AbXFPBq7 (ORCPT ); Fri, 15 Jun 2007 21:46:59 -0400 Received: from mail2.sea5.speakeasy.net ([69.17.117.4]:51305 "EHLO mail2.sea5.speakeasy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757429AbXFPBq5 (ORCPT ); Fri, 15 Jun 2007 21:46:57 -0400 Date: Fri, 15 Jun 2007 21:46:54 -0400 (EDT) From: James Morris X-X-Sender: jmorris@localhost.localdomain To: Seth Arnold cc: Greg KH , Crispin Cowan , Pavel Machek , Andreas Gruenbacher , Stephen Smalley , jjohansen@suse.de, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching In-Reply-To: <20070616001810.GP3564@suse.de> Message-ID: References: <20070514110607.549397248@suse.de> <200706090003.57722.agruen@suse.de> <20070609001703.GA17644@kroah.com> <466C303E.5010304@novell.com> <20070615165054.GA11345@kroah.com> <20070615200623.GA2616@elf.ucw.cz> <20070615211157.GB7337@kroah.com> <46732124.80509@novell.com> <20070615234925.GB15056@kroah.com> <20070616001810.GP3564@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 27 On Fri, 15 Jun 2007, Seth Arnold wrote: > > How does inotify not work here? You are notified that the tree is > > moved, your daemon goes through and relabels things as needed. In the > > meantime, before the re-label happens, you might have the wrong label on > > things, but "somehow" SELinux already handles this, so I think you > > should be fine. > > SELinux does not relabel files when containing directories move, so it > is not a problem they've chosen to face. It's a deliberate design choice, and follows traditional Unix security logic. DAC permissions don't change on every file in the subtree when you mv directories, either. - James -- James Morris - 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/