diff options
Diffstat (limited to 'security/integrity/ima/ima.h')
-rw-r--r-- | security/integrity/ima/ima.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h index 57da4bd7ba0c..8e4bb883fc13 100644 --- a/security/integrity/ima/ima.h +++ b/security/integrity/ima/ima.h | |||
@@ -90,10 +90,7 @@ extern struct list_head ima_measurements; /* list of all measurements */ | |||
90 | 90 | ||
91 | /* Internal IMA function definitions */ | 91 | /* Internal IMA function definitions */ |
92 | int ima_init(void); | 92 | int ima_init(void); |
93 | void ima_cleanup(void); | ||
94 | int ima_fs_init(void); | 93 | int ima_fs_init(void); |
95 | void ima_fs_cleanup(void); | ||
96 | int ima_inode_alloc(struct inode *inode); | ||
97 | int ima_add_template_entry(struct ima_template_entry *entry, int violation, | 94 | int ima_add_template_entry(struct ima_template_entry *entry, int violation, |
98 | const char *op, struct inode *inode, | 95 | const char *op, struct inode *inode, |
99 | const unsigned char *filename); | 96 | const unsigned char *filename); |
@@ -110,8 +107,6 @@ void ima_print_digest(struct seq_file *m, u8 *digest, int size); | |||
110 | struct ima_template_desc *ima_template_desc_current(void); | 107 | struct ima_template_desc *ima_template_desc_current(void); |
111 | int ima_init_template(void); | 108 | int ima_init_template(void); |
112 | 109 | ||
113 | int ima_init_template(void); | ||
114 | |||
115 | /* | 110 | /* |
116 | * used to protect h_table and sha_table | 111 | * used to protect h_table and sha_table |
117 | */ | 112 | */ |
@@ -151,12 +146,6 @@ int ima_store_template(struct ima_template_entry *entry, int violation, | |||
151 | void ima_free_template_entry(struct ima_template_entry *entry); | 146 | void ima_free_template_entry(struct ima_template_entry *entry); |
152 | const char *ima_d_path(struct path *path, char **pathbuf); | 147 | const char *ima_d_path(struct path *path, char **pathbuf); |
153 | 148 | ||
154 | /* rbtree tree calls to lookup, insert, delete | ||
155 | * integrity data associated with an inode. | ||
156 | */ | ||
157 | struct integrity_iint_cache *integrity_iint_insert(struct inode *inode); | ||
158 | struct integrity_iint_cache *integrity_iint_find(struct inode *inode); | ||
159 | |||
160 | /* IMA policy related functions */ | 149 | /* IMA policy related functions */ |
161 | enum ima_hooks { FILE_CHECK = 1, MMAP_CHECK, BPRM_CHECK, MODULE_CHECK, FIRMWARE_CHECK, POST_SETATTR }; | 150 | enum ima_hooks { FILE_CHECK = 1, MMAP_CHECK, BPRM_CHECK, MODULE_CHECK, FIRMWARE_CHECK, POST_SETATTR }; |
162 | 151 | ||
@@ -177,7 +166,7 @@ void ima_delete_rules(void); | |||
177 | int ima_appraise_measurement(int func, struct integrity_iint_cache *iint, | 166 | int ima_appraise_measurement(int func, struct integrity_iint_cache *iint, |
178 | struct file *file, const unsigned char *filename, | 167 | struct file *file, const unsigned char *filename, |
179 | struct evm_ima_xattr_data *xattr_value, | 168 | struct evm_ima_xattr_data *xattr_value, |
180 | int xattr_len); | 169 | int xattr_len, int opened); |
181 | int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func); | 170 | int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func); |
182 | void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file); | 171 | void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file); |
183 | enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint, | 172 | enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint, |
@@ -193,7 +182,7 @@ static inline int ima_appraise_measurement(int func, | |||
193 | struct file *file, | 182 | struct file *file, |
194 | const unsigned char *filename, | 183 | const unsigned char *filename, |
195 | struct evm_ima_xattr_data *xattr_value, | 184 | struct evm_ima_xattr_data *xattr_value, |
196 | int xattr_len) | 185 | int xattr_len, int opened) |
197 | { | 186 | { |
198 | return INTEGRITY_UNKNOWN; | 187 | return INTEGRITY_UNKNOWN; |
199 | } | 188 | } |