From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:50977 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964943AbcCOOgH (ORCPT ); Tue, 15 Mar 2016 10:36:07 -0400 Date: Tue, 15 Mar 2016 14:36:01 +0000 From: Al Viro To: Mimi Zohar Cc: linux-security-module , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 2/2] ima: add support for creating files using the mknodat syscall Message-ID: <20160315143601.GI17997@ZenIV.linux.org.uk> References: <1458049391-26620-1-git-send-email-zohar@linux.vnet.ibm.com> <1458049391-26620-3-git-send-email-zohar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458049391-26620-3-git-send-email-zohar@linux.vnet.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Mar 15, 2016 at 09:43:11AM -0400, Mimi Zohar wrote: > +void ima_post_path_mknod(struct dentry *dentry) > +{ > + struct integrity_iint_cache *iint; > + struct inode *inode; > + int must_appraise; > + > + if (!dentry || !dentry->d_inode) In which situations is that condition supposed to be true?