From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756138AbbFRP10 (ORCPT ); Thu, 18 Jun 2015 11:27:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58391 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756049AbbFRP04 (ORCPT ); Thu, 18 Jun 2015 11:26:56 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <5582BE0F.5030703@tycho.nsa.gov> References: <5582BE0F.5030703@tycho.nsa.gov> <558187EA.60805@tycho.nsa.gov> <55805AEA.3050407@tycho.nsa.gov> <557ECBC5.7000705@tycho.nsa.gov> <16216.1417109138@warthog.procyon.org.uk> <545A51CB.6070107@tycho.nsa.gov> <20141105154217.2555.578.stgit@warthog.procyon.org.uk> <20141105154307.2555.9847.stgit@warthog.procyon.org.uk> <8813.1434123054@warthog.procyon.org.uk> <7332.1434473388@warthog.procyon.org.uk> <16652.1434490473@warthog.procyon.org.uk> <8182.1434622539@warthog.procyon.org.uk> To: Stephen Smalley Cc: dhowells@redhat.com, eparis@redhat.com, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, drquigl , linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, linux-fsdevel@vger.kernel.org, Paul Moore Subject: Re: [PATCH 5/7] SELinux: Handle opening of a unioned file MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18136.1434641209.1@warthog.procyon.org.uk> Date: Thu, 18 Jun 2015 16:26:49 +0100 Message-ID: <18137.1434641209@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen Smalley wrote: > Almost want to be able to compute a transition label for the ecryptfs > inodes from the lower inode label so that it can be derived from but > potentially different from the lower inode label. That way policy could > maintain per-file distinctions within an ecryptfs mount and distinguish > between access to the encrypted vs plaintext representations. Yeah. What we want is something like: lower-inode-label + proposed-upper-label + subject-label -> inode-label By proposed-upper-label I mean the default label for a new inode at that the point in the directory tree at which the copy up will take place. David From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells In-Reply-To: <5582BE0F.5030703@tycho.nsa.gov> References: <5582BE0F.5030703@tycho.nsa.gov> <558187EA.60805@tycho.nsa.gov> <55805AEA.3050407@tycho.nsa.gov> <557ECBC5.7000705@tycho.nsa.gov> <16216.1417109138@warthog.procyon.org.uk> <545A51CB.6070107@tycho.nsa.gov> <20141105154217.2555.578.stgit@warthog.procyon.org.uk> <20141105154307.2555.9847.stgit@warthog.procyon.org.uk> <8813.1434123054@warthog.procyon.org.uk> <7332.1434473388@warthog.procyon.org.uk> <16652.1434490473@warthog.procyon.org.uk> <8182.1434622539@warthog.procyon.org.uk> To: Stephen Smalley Subject: Re: [PATCH 5/7] SELinux: Handle opening of a unioned file MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 18 Jun 2015 16:26:49 +0100 Message-ID: <18137.1434641209@warthog.procyon.org.uk> Cc: linux-unionfs@vger.kernel.org, eparis@redhat.com, linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, drquigl List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Stephen Smalley wrote: > Almost want to be able to compute a transition label for the ecryptfs > inodes from the lower inode label so that it can be derived from but > potentially different from the lower inode label. That way policy could > maintain per-file distinctions within an ecryptfs mount and distinguish > between access to the encrypted vs plaintext representations. Yeah. What we want is something like: lower-inode-label + proposed-upper-label + subject-label -> inode-label By proposed-upper-label I mean the default label for a new inode at that the point in the directory tree at which the copy up will take place. David