/linux-4.4.14/security/integrity/ima/ |
H A D | ima_appraise.c | 133 void ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len, ima_get_hash_algo() argument 138 if (!xattr_value || xattr_len < 2) ima_get_hash_algo() 141 switch (xattr_value->type) { ima_get_hash_algo() 143 sig = (typeof(sig))xattr_value; ima_get_hash_algo() 149 hash->algo = xattr_value->digest[0]; ima_get_hash_algo() 155 if (!memcmp(&xattr_value->digest[16], &zero, 4)) ima_get_hash_algo() 166 struct evm_ima_xattr_data **xattr_value) ima_read_xattr() 173 return vfs_getxattr_alloc(dentry, XATTR_NAME_IMA, (char **)xattr_value, ima_read_xattr() 187 struct evm_ima_xattr_data *xattr_value, ima_appraise_measurement() 213 status = evm_verifyxattr(dentry, XATTR_NAME_IMA, xattr_value, rc, iint); ima_appraise_measurement() 222 switch (xattr_value->type) { ima_appraise_measurement() 232 if (xattr_len - sizeof(xattr_value->type) - hash_start >= ima_appraise_measurement() 237 rc = memcmp(&xattr_value->digest[hash_start], ima_appraise_measurement() 252 (const char *)xattr_value, rc, ima_appraise_measurement() 273 (!xattr_value || ima_appraise_measurement() 274 xattr_value->type != EVM_IMA_XATTR_DIGSIG)) { ima_appraise_measurement() 345 const void *xattr_value, size_t xattr_value_len) ima_protect_xattr() 373 const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() 375 const struct evm_ima_xattr_data *xvalue = xattr_value; ima_inode_setxattr() 378 result = ima_protect_xattr(dentry, xattr_name, xattr_value, ima_inode_setxattr() 165 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value) ima_read_xattr() argument 185 ima_appraise_measurement(int func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, int opened) ima_appraise_measurement() argument 344 ima_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_protect_xattr() argument 372 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
|
H A D | ima.h | 60 struct evm_ima_xattr_data *xattr_value; member in struct:ima_event_data 144 struct evm_ima_xattr_data **xattr_value, 148 struct evm_ima_xattr_data *xattr_value, 180 struct evm_ima_xattr_data *xattr_value, 186 void ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, int xattr_len, 189 struct evm_ima_xattr_data **xattr_value); 196 struct evm_ima_xattr_data *xattr_value, ima_appraise_measurement() 219 static inline void ima_get_hash_algo(struct evm_ima_xattr_data *xattr_value, ima_get_hash_algo() argument 226 struct evm_ima_xattr_data **xattr_value) ima_read_xattr() 192 ima_appraise_measurement(int func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, int opened) ima_appraise_measurement() argument 225 ima_read_xattr(struct dentry *dentry, struct evm_ima_xattr_data **xattr_value) ima_read_xattr() argument
|
H A D | ima_api.c | 192 struct evm_ima_xattr_data **xattr_value, ima_collect_measurement() 204 if (xattr_value) ima_collect_measurement() 205 *xattr_len = ima_read_xattr(file->f_path.dentry, xattr_value); ima_collect_measurement() 219 if (xattr_value) ima_collect_measurement() 220 ima_get_hash_algo(*xattr_value, *xattr_len, &hash.hdr); ima_collect_measurement() 261 struct evm_ima_xattr_data *xattr_value, ima_store_measurement() 269 struct ima_event_data event_data = {iint, file, filename, xattr_value, ima_store_measurement() 190 ima_collect_measurement(struct integrity_iint_cache *iint, struct file *file, struct evm_ima_xattr_data **xattr_value, int *xattr_len) ima_collect_measurement() argument 259 ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len) ima_store_measurement() argument
|
H A D | ima_template_lib.c | 319 struct evm_ima_xattr_data *xattr_value = event_data->xattr_value; ima_eventsig_init() local 323 if ((!xattr_value) || (xattr_value->type != EVM_IMA_XATTR_DIGSIG)) ima_eventsig_init() 326 rc = ima_write_template_field_data(xattr_value, xattr_len, fmt, ima_eventsig_init()
|
H A D | ima_main.c | 166 struct evm_ima_xattr_data *xattr_value = NULL, **xattr_ptr = NULL; process_measurement() local 224 xattr_ptr = &xattr_value; process_measurement() 238 xattr_value, xattr_len); process_measurement() 241 xattr_value, xattr_len, opened); process_measurement() 248 kfree(xattr_value); process_measurement()
|
/linux-4.4.14/include/linux/ |
H A D | evm.h | 19 void *xattr_value, 28 const void *xattr_value, 48 void *xattr_value, evm_verifyxattr() 74 const void *xattr_value, evm_inode_post_setxattr() 46 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument 72 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
|
H A D | ima.h | 60 const void *xattr_value, size_t xattr_value_len); 70 const void *xattr_value, ima_inode_setxattr() 68 ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) ima_inode_setxattr() argument
|
H A D | xattr.h | 55 char **xattr_value, size_t size, gfp_t flags);
|
/linux-4.4.14/security/integrity/evm/ |
H A D | evm_main.c | 112 char *xattr_value, evm_verify_hmac() 148 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, evm_verify_hmac() 158 rc = evm_calc_hash(dentry, xattr_name, xattr_value, evm_verify_hmac() 172 xattr_value, evm_verify_hmac() 218 * @xattr_value: requested xattr value 232 void *xattr_value, size_t xattr_value_len, evm_verifyxattr() 243 return evm_verify_hmac(dentry, xattr_name, xattr_value, evm_verifyxattr() 277 const void *xattr_value, size_t xattr_value_len) evm_protect_xattr() 325 * @xattr_value: pointer to the new extended attribute value 335 const void *xattr_value, size_t xattr_value_len) evm_inode_setxattr() 337 const struct evm_ima_xattr_data *xattr_data = xattr_value; evm_inode_setxattr() 345 return evm_protect_xattr(dentry, xattr_name, xattr_value, evm_inode_setxattr() 366 * @xattr_value: pointer to the new extended attribute value 376 const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() 382 evm_update_evmxattr(dentry, xattr_name, xattr_value, xattr_value_len); evm_inode_post_setxattr() 110 evm_verify_hmac(struct dentry *dentry, const char *xattr_name, char *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verify_hmac() argument 230 evm_verifyxattr(struct dentry *dentry, const char *xattr_name, void *xattr_value, size_t xattr_value_len, struct integrity_iint_cache *iint) evm_verifyxattr() argument 276 evm_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_protect_xattr() argument 334 evm_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_setxattr() argument 375 evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len) evm_inode_post_setxattr() argument
|
H A D | evm_crypto.c | 138 char *xattr_value = NULL; evm_calc_hmac_or_hash() local 158 &xattr_value, xattr_size, GFP_NOFS); evm_calc_hmac_or_hash() 168 crypto_shash_update(desc, (const u8 *)xattr_value, xattr_size); evm_calc_hmac_or_hash() 173 kfree(xattr_value); evm_calc_hmac_or_hash() 200 const char *xattr_value, size_t xattr_value_len) evm_update_evmxattr() 206 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, evm_update_evmxattr() 199 evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, const char *xattr_value, size_t xattr_value_len) evm_update_evmxattr() argument
|
/linux-4.4.14/fs/ |
H A D | xattr.c | 181 vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, vfs_getxattr_alloc() argument 185 char *value = *xattr_value; vfs_getxattr_alloc() 200 value = krealloc(*xattr_value, error + 1, flags); vfs_getxattr_alloc() 207 *xattr_value = value; vfs_getxattr_alloc() 215 char *xattr_value = NULL; vfs_xattr_cmp() local 218 rc = vfs_getxattr_alloc(dentry, xattr_name, &xattr_value, 0, flags); vfs_xattr_cmp() 222 if ((rc != size) || (memcmp(xattr_value, value, rc) != 0)) vfs_xattr_cmp() 226 kfree(xattr_value); vfs_xattr_cmp()
|
/linux-4.4.14/fs/cifs/ |
H A D | cifspdu.h | 2753 /* followed by xattr_value[xattr_value_len], no pad */
|