Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932591AbbFRSXm (ORCPT ); Thu, 18 Jun 2015 14:23:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48244 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbbFRSXd (ORCPT ); Thu, 18 Jun 2015 14:23:33 -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: <5583007A.8040704@tycho.nsa.gov> References: <5583007A.8040704@tycho.nsa.gov> <1509.1434645664@warthog.procyon.org.uk> <5582FB01.9080602@tycho.nsa.gov> To: Stephen Smalley Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, SELinux , Paul Moore Subject: Re: [PATCH] SELinux: Create a common helper to determine an inode label [ver #2] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5946.1434651808.1@warthog.procyon.org.uk> Date: Thu, 18 Jun 2015 19:23:28 +0100 Message-ID: <5947.1434651808@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 541 Lines: 17 Stephen Smalley wrote: > >> + rc = selinux_determine_inode_label(d_inode(dentry), name, > > > > We want d_inode(dentry->d_parent) here. > > Not sure why the caller didn't just pass in the dir inode in the first > place. Might be something in one of the other LSMs? 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/