Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755339AbZA3NNe (ORCPT ); Fri, 30 Jan 2009 08:13:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752202AbZA3NN0 (ORCPT ); Fri, 30 Jan 2009 08:13:26 -0500 Received: from e6.ny.us.ibm.com ([32.97.182.146]:40531 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbZA3NNZ (ORCPT ); Fri, 30 Jan 2009 08:13:25 -0500 Subject: Re: [PATCH 2/6] integrity: IMA as an integrity service provider From: Mimi Zohar To: James Morris Cc: linux-kernel@vger.kernel.org, Andrew Morton , Christoph Hellwig , Dave Hansen , ", Serge Hallyn , Mimi Zohar In-Reply-To: References: Content-Type: text/plain Date: Fri, 30 Jan 2009 08:13:22 -0500 Message-Id: <1233321202.3602.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 28 On Fri, 2009-01-30 at 20:04 +1100, James Morris wrote: > On Thu, 29 Jan 2009, Mimi Zohar wrote: > > > +static struct ima_queue_entry *ima_lookup_digest_entry(u8 *digest_value) > > +{ > > + struct ima_queue_entry *qe, *ret = NULL; > > + unsigned int key; > > + struct hlist_node *pos; > > + > > + key = ima_hash_key(digest_value); > > + rcu_read_lock(); > > + hlist_for_each_entry_rcu(qe, pos, &ima_htable.queue[key], hnext) { > > + if (memcmp(qe->entry->digest, digest_value, 20) == 0) { > > Minor issue: '20' should be IMA_DIGEST_SIZE, right? > > > - James Right. Mimi -- 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/