Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751779AbaK0ORr (ORCPT ); Thu, 27 Nov 2014 09:17:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33374 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbaK0ORm (ORCPT ); Thu, 27 Nov 2014 09:17:42 -0500 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: <545A6464.5070702@tycho.nsa.gov> References: <545A6464.5070702@tycho.nsa.gov> <20141105154217.2555.578.stgit@warthog.procyon.org.uk> <20141105154318.2555.7052.stgit@warthog.procyon.org.uk> <545A53A9.4060009@tycho.nsa.gov> To: Stephen Smalley Cc: dhowells@redhat.com, linux-unionfs@vger.kernel.org, selinux@tycho.nsa.gov, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/7] SELinux: The copy-up operation must have read permission on the lower file MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12075.1417097856.1@warthog.procyon.org.uk> Date: Thu, 27 Nov 2014 14:17:36 +0000 Message-ID: <12076.1417097856@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen Smalley wrote: > This means that it expects to trigger those capability checks as part of > its subsequent actions. Raising those capabilities temporarily in its > credentials will pass the capability module checks but won't address the > corresponding SELinux checks (both capability and file-based), so you'll > end up triggering an entire set of checks against the current process' > credentials. This same pattern is repeated elsewhere in overlayfs. Hmmm... Yes. I need to check whether the lower file can be read *before* overriding the creds. David -- 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/