Lines Matching defs:xattr_name

130 					     const char *xattr_name,
176 rc = evm_calc_hmac(dentry, xattr_name, xattr_value,
195 rc = evm_calc_hash(dentry, xattr_name, xattr_value,
212 evm_update_evmxattr(dentry, xattr_name,
260 * @xattr_name: requested xattr
274 const char *xattr_name,
278 if (!evm_key_loaded() || !evm_protected_xattr(xattr_name))
286 return evm_verify_hmac(dentry, xattr_name, xattr_value,
319 static int evm_protect_xattr(struct dentry *dentry, const char *xattr_name,
324 if (strcmp(xattr_name, XATTR_NAME_EVM) == 0) {
327 } else if (!evm_protected_xattr(xattr_name)) {
328 if (!posix_xattr_acl(xattr_name))
368 * @xattr_name: pointer to the affected extended attribute name
378 int evm_inode_setxattr(struct dentry *dentry, const char *xattr_name,
389 if (strcmp(xattr_name, XATTR_NAME_EVM) == 0) {
396 return evm_protect_xattr(dentry, xattr_name, xattr_value,
403 * @xattr_name: pointer to the affected extended attribute name
408 int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name)
416 return evm_protect_xattr(dentry, xattr_name, NULL, 0);
431 * @xattr_name: pointer to the affected extended attribute name
441 void evm_inode_post_setxattr(struct dentry *dentry, const char *xattr_name,
444 if (!evm_key_loaded() || (!evm_protected_xattr(xattr_name)
445 && !posix_xattr_acl(xattr_name)))
450 evm_update_evmxattr(dentry, xattr_name, xattr_value, xattr_value_len);
456 * @xattr_name: pointer to the affected extended attribute name
463 void evm_inode_post_removexattr(struct dentry *dentry, const char *xattr_name)
465 if (!evm_key_loaded() || !evm_protected_xattr(xattr_name))
470 evm_update_evmxattr(dentry, xattr_name, NULL, 0);