ima.h (cf2222178645e545e96717b2825601321ce4745c) | ima.h (c6af8efe97d87fa308eb1bbd0cf4feb820a4d622) |
---|---|
1/* 2 * Copyright (C) 2005,2006,2007,2008 IBM Corporation 3 * 4 * Authors: 5 * Reiner Sailer <sailer@watson.ibm.com> 6 * Mimi Zohar <zohar@us.ibm.com> 7 * 8 * This program is free software; you can redistribute it and/or --- 130 unchanged lines hidden (view full) --- 139{ 140 return hash_long(*digest, IMA_HASH_BITS); 141} 142 143enum ima_hooks { 144 FILE_CHECK = 1, 145 MMAP_CHECK, 146 BPRM_CHECK, | 1/* 2 * Copyright (C) 2005,2006,2007,2008 IBM Corporation 3 * 4 * Authors: 5 * Reiner Sailer <sailer@watson.ibm.com> 6 * Mimi Zohar <zohar@us.ibm.com> 7 * 8 * This program is free software; you can redistribute it and/or --- 130 unchanged lines hidden (view full) --- 139{ 140 return hash_long(*digest, IMA_HASH_BITS); 141} 142 143enum ima_hooks { 144 FILE_CHECK = 1, 145 MMAP_CHECK, 146 BPRM_CHECK, |
147 POST_SETATTR, |
|
147 MODULE_CHECK, 148 FIRMWARE_CHECK, | 148 MODULE_CHECK, 149 FIRMWARE_CHECK, |
149 POST_SETATTR | 150 MAX_CHECK |
150}; 151 152/* LIM API function definitions */ 153int ima_get_action(struct inode *inode, int mask, enum ima_hooks func); 154int ima_must_measure(struct inode *inode, int mask, enum ima_hooks func); 155int ima_collect_measurement(struct integrity_iint_cache *iint, 156 struct file *file, void *buf, loff_t size, 157 enum hash_algo algo); --- 121 unchanged lines hidden --- | 151}; 152 153/* LIM API function definitions */ 154int ima_get_action(struct inode *inode, int mask, enum ima_hooks func); 155int ima_must_measure(struct inode *inode, int mask, enum ima_hooks func); 156int ima_collect_measurement(struct integrity_iint_cache *iint, 157 struct file *file, void *buf, loff_t size, 158 enum hash_algo algo); --- 121 unchanged lines hidden --- |