From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758450AbZFZPZU (ORCPT ); Fri, 26 Jun 2009 11:25:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752533AbZFZPZE (ORCPT ); Fri, 26 Jun 2009 11:25:04 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:60575 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753108AbZFZPZB (ORCPT ); Fri, 26 Jun 2009 11:25:01 -0400 From: Mimi Zohar To: linux-kernel@vger.kernel.org Cc: Mimi Zohar , James Morris , David Safford , Mimi Zohar Subject: [PATCH] integrity: ima audit hash_exists fix Date: Fri, 26 Jun 2009 11:25:00 -0400 Message-Id: <1246029900-6910-1-git-send-email-zohar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.0.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Audit the file name, not the template name. Signed-off-by: Mimi Zohar --- security/integrity/ima/ima_queue.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c index 7ec9431..57f26f1 100644 --- a/security/integrity/ima/ima_queue.c +++ b/security/integrity/ima/ima_queue.c @@ -134,7 +134,8 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation, } out: mutex_unlock(&ima_extend_list_mutex); - integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, entry->template_name, + integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, + entry->template.file_name, op, audit_cause, result, audit_info); return result; } -- 1.6.0.6