ima.h (a71dc65d30a472409f05d247f4eab91b14acf2f5) | ima.h (bcbc9b0cf6d8f340a1d166e414f4612b353f7a9b) |
---|---|
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 --- 45 unchanged lines hidden (view full) --- 54 u32 len; 55}; 56 57/* IMA template field definition */ 58struct ima_template_field { 59 const char field_id[IMA_TEMPLATE_FIELD_ID_MAX_LEN]; 60 int (*field_init) (struct integrity_iint_cache *iint, struct file *file, 61 const unsigned char *filename, | 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 --- 45 unchanged lines hidden (view full) --- 54 u32 len; 55}; 56 57/* IMA template field definition */ 58struct ima_template_field { 59 const char field_id[IMA_TEMPLATE_FIELD_ID_MAX_LEN]; 60 int (*field_init) (struct integrity_iint_cache *iint, struct file *file, 61 const unsigned char *filename, |
62 struct ima_field_data *field_data); | 62 struct evm_ima_xattr_data *xattr_value, 63 int xattr_len, struct ima_field_data *field_data); |
63 void (*field_show) (struct seq_file *m, enum ima_show_type show, 64 struct ima_field_data *field_data); 65}; 66 67/* IMA template descriptor definition */ 68struct ima_template_desc { 69 char *name; 70 char *fmt; --- 58 unchanged lines hidden (view full) --- 129/* LIM API function definitions */ 130int ima_get_action(struct inode *inode, int mask, int function); 131int ima_must_measure(struct inode *inode, int mask, int function); 132int ima_collect_measurement(struct integrity_iint_cache *iint, 133 struct file *file, 134 struct evm_ima_xattr_data **xattr_value, 135 int *xattr_len); 136void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, | 64 void (*field_show) (struct seq_file *m, enum ima_show_type show, 65 struct ima_field_data *field_data); 66}; 67 68/* IMA template descriptor definition */ 69struct ima_template_desc { 70 char *name; 71 char *fmt; --- 58 unchanged lines hidden (view full) --- 130/* LIM API function definitions */ 131int ima_get_action(struct inode *inode, int mask, int function); 132int ima_must_measure(struct inode *inode, int mask, int function); 133int ima_collect_measurement(struct integrity_iint_cache *iint, 134 struct file *file, 135 struct evm_ima_xattr_data **xattr_value, 136 int *xattr_len); 137void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, |
137 const unsigned char *filename); | 138 const unsigned char *filename, 139 struct evm_ima_xattr_data *xattr_value, 140 int xattr_len); |
138void ima_audit_measurement(struct integrity_iint_cache *iint, 139 const unsigned char *filename); 140int ima_alloc_init_template(struct integrity_iint_cache *iint, 141 struct file *file, const unsigned char *filename, | 141void ima_audit_measurement(struct integrity_iint_cache *iint, 142 const unsigned char *filename); 143int ima_alloc_init_template(struct integrity_iint_cache *iint, 144 struct file *file, const unsigned char *filename, |
142 struct ima_template_entry **entry); | 145 struct evm_ima_xattr_data *xattr_value, 146 int xattr_len, struct ima_template_entry **entry); |
143int ima_store_template(struct ima_template_entry *entry, int violation, 144 struct inode *inode, const unsigned char *filename); 145const char *ima_d_path(struct path *path, char **pathbuf); 146 147/* rbtree tree calls to lookup, insert, delete 148 * integrity data associated with an inode. 149 */ 150struct integrity_iint_cache *integrity_iint_insert(struct inode *inode); --- 95 unchanged lines hidden --- | 147int ima_store_template(struct ima_template_entry *entry, int violation, 148 struct inode *inode, const unsigned char *filename); 149const char *ima_d_path(struct path *path, char **pathbuf); 150 151/* rbtree tree calls to lookup, insert, delete 152 * integrity data associated with an inode. 153 */ 154struct integrity_iint_cache *integrity_iint_insert(struct inode *inode); --- 95 unchanged lines hidden --- |