Home
last modified time | relevance | path

Searched refs:xattr_name (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/security/integrity/evm/
Devm_main.c130 const char *xattr_name, in evm_verify_hmac() argument
176 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_verify_hmac()
195 rc = evm_calc_hash(dentry, xattr_name, xattr_value, in evm_verify_hmac()
212 evm_update_evmxattr(dentry, xattr_name, in evm_verify_hmac()
274 const char *xattr_name, in evm_verifyxattr() argument
278 if (!evm_key_loaded() || !evm_protected_xattr(xattr_name)) in evm_verifyxattr()
286 return evm_verify_hmac(dentry, xattr_name, xattr_value, in evm_verifyxattr()
319 static int evm_protect_xattr(struct dentry *dentry, const char *xattr_name, in evm_protect_xattr() argument
324 if (strcmp(xattr_name, XATTR_NAME_EVM) == 0) { in evm_protect_xattr()
327 } else if (!evm_protected_xattr(xattr_name)) { in evm_protect_xattr()
[all …]
Devm_crypto.c303 int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, in evm_update_evmxattr() argument
321 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr()
/kernel/linux/linux-5.10/fs/hfsplus/
Dxattr_security.c40 char *xattr_name; in hfsplus_initxattrs() local
43 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, in hfsplus_initxattrs()
45 if (!xattr_name) in hfsplus_initxattrs()
52 strcpy(xattr_name, XATTR_SECURITY_PREFIX); in hfsplus_initxattrs()
53 strcpy(xattr_name + in hfsplus_initxattrs()
55 memset(xattr_name + in hfsplus_initxattrs()
58 err = __hfsplus_setxattr(inode, xattr_name, in hfsplus_initxattrs()
63 kfree(xattr_name); in hfsplus_initxattrs()
Dxattr.c394 static int name_len(const char *xattr_name, int xattr_name_len) in name_len() argument
398 if (!is_known_namespace(xattr_name)) in name_len()
404 static int copy_name(char *buffer, const char *xattr_name, int name_len) in copy_name() argument
409 if (!is_known_namespace(xattr_name)) { in copy_name()
415 strncpy(buffer + offset, xattr_name, name_len); in copy_name()
426 char *xattr_name; in hfsplus_setxattr() local
429 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, in hfsplus_setxattr()
431 if (!xattr_name) in hfsplus_setxattr()
433 strcpy(xattr_name, prefix); in hfsplus_setxattr()
434 strcpy(xattr_name + prefixlen, name); in hfsplus_setxattr()
[all …]
/kernel/linux/linux-5.10/include/linux/
Devm.h20 const char *xattr_name,
29 const char *xattr_name,
32 extern int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name);
34 const char *xattr_name);
55 const char *xattr_name, in evm_verifyxattr() argument
81 const char *xattr_name, in evm_inode_post_setxattr() argument
89 const char *xattr_name) in evm_inode_removexattr() argument
95 const char *xattr_name) in evm_inode_post_removexattr() argument
Dima.h145 extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name,
147 extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name);
160 const char *xattr_name, in ima_inode_setxattr() argument
168 const char *xattr_name) in ima_inode_removexattr() argument
Dnfs_xdr.h1510 const char *xattr_name; member
1524 const char *xattr_name; member
1555 const char *xattr_name; member
/kernel/linux/linux-5.10/fs/btrfs/
Dprops.c19 const char *xattr_name; member
52 if (!strcmp(h->xattr_name, name)) in find_prop_handler()
87 ret = btrfs_setxattr(trans, inode, handler->xattr_name, in btrfs_set_prop()
98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop()
104 btrfs_setxattr(trans, inode, handler->xattr_name, NULL, in btrfs_set_prop()
238 handler->xattr_name, btrfs_ino(BTRFS_I(inode)), in inode_prop_iterator()
315 .xattr_name = XATTR_BTRFS_PREFIX "compression",
372 ret = btrfs_setxattr(trans, inode, h->xattr_name, value, in inherit_props()
377 btrfs_setxattr(trans, inode, h->xattr_name, in inherit_props()
437 u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name)); in btrfs_props_init()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_appraise.c532 static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name, in ima_protect_xattr() argument
535 if (strcmp(xattr_name, XATTR_NAME_IMA) == 0) { in ima_protect_xattr()
561 int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, in ima_inode_setxattr() argument
567 result = ima_protect_xattr(dentry, xattr_name, xattr_value, in ima_inode_setxattr()
579 int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name) in ima_inode_removexattr() argument
583 result = ima_protect_xattr(dentry, xattr_name, NULL, 0); in ima_inode_removexattr()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs42xattr.c84 char *xattr_name; member
236 entry->xattr_name = namep; in nfs4_xattr_alloc_entry()
519 if (!strcmp(entry->xattr_name, name)) in nfs4_xattr_get_entry()
534 bucket = nfs4_xattr_hash_bucket(cache, entry->xattr_name); in nfs4_xattr_hash_add()
544 oldentry = nfs4_xattr_get_entry(bucket, entry->xattr_name); in nfs4_xattr_hash_add()
625 entry->xattr_name, (unsigned long)entry->xattr_size); in nfs4_xattr_cache_get()
910 if (entry->xattr_name != NULL) { in entry_lru_isolate()
Dnfs42xdr.c447 encode_string(xdr, strlen(arg->xattr_name), arg->xattr_name); in encode_setxattr()
1481 encode_getxattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_getxattr()
1566 encode_removexattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_removexattr()
Dnfs42proc.c1125 .xattr_name = name, in _nfs42_proc_removexattr()
1153 .xattr_name = name, in _nfs42_proc_setxattr()
1196 .xattr_name = name, in _nfs42_proc_getxattr()
/kernel/linux/linux-5.10/fs/cifs/
Dcifspdu.h2765 char xattr_name[]; member