ima_init.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | ima_init.c (4de2f084fbff41113d9adec3c9e15ab12bf05e21) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2005,2006,2007,2008 IBM Corporation 4 * 5 * Authors: 6 * Reiner Sailer <sailer@watson.ibm.com> 7 * Leendert van Doorn <leendert@watson.ibm.com> 8 * Mimi Zohar <zohar@us.ibm.com> --- 30 unchanged lines hidden (view full) --- 39 * a different value.) Violations add a zero entry to the measurement 40 * list and extend the aggregate PCR value with ff...ff's. 41 */ 42static int __init ima_add_boot_aggregate(void) 43{ 44 static const char op[] = "add_boot_aggregate"; 45 const char *audit_cause = "ENOMEM"; 46 struct ima_template_entry *entry; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2005,2006,2007,2008 IBM Corporation 4 * 5 * Authors: 6 * Reiner Sailer <sailer@watson.ibm.com> 7 * Leendert van Doorn <leendert@watson.ibm.com> 8 * Mimi Zohar <zohar@us.ibm.com> --- 30 unchanged lines hidden (view full) --- 39 * a different value.) Violations add a zero entry to the measurement 40 * list and extend the aggregate PCR value with ff...ff's. 41 */ 42static int __init ima_add_boot_aggregate(void) 43{ 44 static const char op[] = "add_boot_aggregate"; 45 const char *audit_cause = "ENOMEM"; 46 struct ima_template_entry *entry; |
47 struct integrity_iint_cache tmp_iint, *iint = &tmp_iint; | 47 struct ima_iint_cache tmp_iint, *iint = &tmp_iint; |
48 struct ima_event_data event_data = { .iint = iint, 49 .filename = boot_aggregate_name }; 50 struct ima_max_digest_data hash; 51 int result = -ENOMEM; 52 int violation = 0; 53 54 memset(iint, 0, sizeof(*iint)); 55 memset(&hash, 0, sizeof(hash)); --- 103 unchanged lines hidden --- | 48 struct ima_event_data event_data = { .iint = iint, 49 .filename = boot_aggregate_name }; 50 struct ima_max_digest_data hash; 51 int result = -ENOMEM; 52 int violation = 0; 53 54 memset(iint, 0, sizeof(*iint)); 55 memset(&hash, 0, sizeof(hash)); --- 103 unchanged lines hidden --- |