iint.c (da733563be5a9da26fe81d9f007262d00b846e22) | iint.c (2fe5d6def1672ae6635dd71867bf36dcfaa7434b) |
---|---|
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 --- 60 unchanged lines hidden (view full) --- 69 70 return iint; 71} 72 73static void iint_free(struct integrity_iint_cache *iint) 74{ 75 iint->version = 0; 76 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 --- 60 unchanged lines hidden (view full) --- 69 70 return iint; 71} 72 73static void iint_free(struct integrity_iint_cache *iint) 74{ 75 iint->version = 0; 76 iint->flags = 0UL; |
77 iint->ima_status = INTEGRITY_UNKNOWN; |
|
77 iint->evm_status = INTEGRITY_UNKNOWN; 78 kmem_cache_free(iint_cache, iint); 79} 80 81/** 82 * integrity_inode_alloc - allocate an iint associated with an inode 83 * @inode: pointer to the inode 84 */ --- 67 unchanged lines hidden (view full) --- 152 153static void init_once(void *foo) 154{ 155 struct integrity_iint_cache *iint = foo; 156 157 memset(iint, 0, sizeof *iint); 158 iint->version = 0; 159 iint->flags = 0UL; | 78 iint->evm_status = INTEGRITY_UNKNOWN; 79 kmem_cache_free(iint_cache, iint); 80} 81 82/** 83 * integrity_inode_alloc - allocate an iint associated with an inode 84 * @inode: pointer to the inode 85 */ --- 67 unchanged lines hidden (view full) --- 153 154static void init_once(void *foo) 155{ 156 struct integrity_iint_cache *iint = foo; 157 158 memset(iint, 0, sizeof *iint); 159 iint->version = 0; 160 iint->flags = 0UL; |
160 mutex_init(&iint->mutex); | 161 iint->ima_status = INTEGRITY_UNKNOWN; |
161 iint->evm_status = INTEGRITY_UNKNOWN; 162} 163 164static int __init integrity_iintcache_init(void) 165{ 166 iint_cache = 167 kmem_cache_create("iint_cache", sizeof(struct integrity_iint_cache), 168 0, SLAB_PANIC, init_once); 169 iint_initialized = 1; 170 return 0; 171} 172security_initcall(integrity_iintcache_init); | 162 iint->evm_status = INTEGRITY_UNKNOWN; 163} 164 165static int __init integrity_iintcache_init(void) 166{ 167 iint_cache = 168 kmem_cache_create("iint_cache", sizeof(struct integrity_iint_cache), 169 0, SLAB_PANIC, init_once); 170 iint_initialized = 1; 171 return 0; 172} 173security_initcall(integrity_iintcache_init); |