iint.c (d21bd6898336a7892914d308d5e0868f0b863571) | iint.c (0d73a55208e94fc9fb6deaeea61438cd3280d4c0) |
---|---|
1/* 2 * Copyright (C) 2008 IBM Corporation 3 * 4 * Authors: 5 * Mimi Zohar <zohar@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 141 unchanged lines hidden (view full) --- 150 151static void init_once(void *foo) 152{ 153 struct integrity_iint_cache *iint = foo; 154 155 memset(iint, 0, sizeof(*iint)); 156 iint->version = 0; 157 iint->flags = 0UL; | 1/* 2 * Copyright (C) 2008 IBM Corporation 3 * 4 * Authors: 5 * Mimi Zohar <zohar@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 141 unchanged lines hidden (view full) --- 150 151static void init_once(void *foo) 152{ 153 struct integrity_iint_cache *iint = foo; 154 155 memset(iint, 0, sizeof(*iint)); 156 iint->version = 0; 157 iint->flags = 0UL; |
158 iint->atomic_flags = 0; |
|
158 iint->ima_file_status = INTEGRITY_UNKNOWN; 159 iint->ima_mmap_status = INTEGRITY_UNKNOWN; 160 iint->ima_bprm_status = INTEGRITY_UNKNOWN; 161 iint->ima_read_status = INTEGRITY_UNKNOWN; 162 iint->evm_status = INTEGRITY_UNKNOWN; 163 iint->measured_pcrs = 0; | 159 iint->ima_file_status = INTEGRITY_UNKNOWN; 160 iint->ima_mmap_status = INTEGRITY_UNKNOWN; 161 iint->ima_bprm_status = INTEGRITY_UNKNOWN; 162 iint->ima_read_status = INTEGRITY_UNKNOWN; 163 iint->evm_status = INTEGRITY_UNKNOWN; 164 iint->measured_pcrs = 0; |
165 mutex_init(&iint->mutex); |
|
164} 165 166static int __init integrity_iintcache_init(void) 167{ 168 iint_cache = 169 kmem_cache_create("iint_cache", sizeof(struct integrity_iint_cache), 170 0, SLAB_PANIC, init_once); 171 return 0; --- 41 unchanged lines hidden --- | 166} 167 168static int __init integrity_iintcache_init(void) 169{ 170 iint_cache = 171 kmem_cache_create("iint_cache", sizeof(struct integrity_iint_cache), 172 0, SLAB_PANIC, init_once); 173 return 0; --- 41 unchanged lines hidden --- |