Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762948AbYLCUiu (ORCPT ); Wed, 3 Dec 2008 15:38:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758546AbYLCUZs (ORCPT ); Wed, 3 Dec 2008 15:25:48 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:58940 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758819AbYLCUZq (ORCPT ); Wed, 3 Dec 2008 15:25:46 -0500 Date: Wed, 3 Dec 2008 15:25:43 -0500 From: Christoph Hellwig To: "Serge E. Hallyn" Cc: Christoph Hellwig , Mimi Zohar , linux-kernel@vger.kernel.org, Andrew Morton , James Morris , Al Viro , David Safford , Serge Hallyn , Mimi Zohar Subject: Re: [PATCH 2/6] integrity: Linux Integrity Module(LIM) Message-ID: <20081203202543.GA16279@infradead.org> References: <20081203201320.GA17785@hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081203201320.GA17785@hallyn.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1224 Lines: 28 On Wed, Dec 03, 2008 at 02:13:20PM -0600, Serge E. Hallyn wrote: > > Can you explain what all this template stuff is about? The only method > > of these ever called is display_template, > > I'm not sure what you mean here - must_measure for instance is used (in > patch 3) in the integrity hooks (i.e. file_mmap) to decide whether or not > the object (action target) must be measured. ima_must_measure (or the other implementation bits) are called a lot. But never through the indirection I quoted. > > and that seems to be better > > implented directly as a securityfs file, without the indirection. > > That comment doesn't make sense to me (unless you're saying to punt > on the generic integrity infrastructure and hook all of the IMA > code straight into the kernel) so I suspect I'm misreading > something. ima_measurements_show alaways calls ima_template_show, and both are implemented inside the ima module. There's absolutely no point for the indirection here. -- 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/