/linux/security/integrity/evm/ |
A D | evm_main.c | 174 const char *xattr_name, in evm_verify_hmac() argument 258 evm_update_evmxattr(dentry, xattr_name, in evm_verify_hmac() 410 const char *xattr_name, in evm_verifyxattr() argument 511 if (posix_xattr_acl(xattr_name)) in evm_xattr_change() 551 if (!posix_xattr_acl(xattr_name)) in evm_protect_xattr() 692 if (!xattr_name) in evm_revalidate_status() 695 if (!evm_protected_xattr(xattr_name) && !posix_xattr_acl(xattr_name) && in evm_revalidate_status() 696 strcmp(xattr_name, XATTR_NAME_EVM)) in evm_revalidate_status() 718 if (!evm_revalidate_status(xattr_name)) in evm_inode_post_setxattr() 723 if (!strcmp(xattr_name, XATTR_NAME_EVM)) in evm_inode_post_setxattr() [all …]
|
A D | evm_crypto.c | 359 int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, in evm_update_evmxattr() argument 377 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr()
|
/linux/include/linux/ |
A D | evm.h | 20 const char *xattr_name, 30 const char *xattr_name, 34 struct dentry *dentry, const char *xattr_name); 36 const char *xattr_name); 40 extern bool evm_revalidate_status(const char *xattr_name); 62 const char *xattr_name, in evm_verifyxattr() argument 89 const char *xattr_name, in evm_inode_post_setxattr() argument 98 const char *xattr_name) in evm_inode_removexattr() argument 104 const char *xattr_name) in evm_inode_post_removexattr() argument 116 static inline bool evm_revalidate_status(const char *xattr_name) in evm_revalidate_status() argument
|
A D | ima.h | 183 extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, 185 extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name); 199 const char *xattr_name, in ima_inode_setxattr() argument 207 const char *xattr_name) in ima_inode_removexattr() argument
|
A D | nfs_xdr.h | 1519 const char *xattr_name; member 1533 const char *xattr_name; member 1564 const char *xattr_name; member
|
A D | security.h | 321 const char **xattr_name, void **ctx, 743 const char **xattr_name, in security_dentry_init_security() argument
|
A D | lsm_hook_defs.h | 86 int mode, const struct qstr *name, const char **xattr_name,
|
/linux/fs/hfsplus/ |
A D | xattr_security.c | 41 char *xattr_name; in hfsplus_initxattrs() local 44 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, in hfsplus_initxattrs() 46 if (!xattr_name) in hfsplus_initxattrs() 53 strcpy(xattr_name, XATTR_SECURITY_PREFIX); in hfsplus_initxattrs() 54 strcpy(xattr_name + in hfsplus_initxattrs() 56 memset(xattr_name + in hfsplus_initxattrs() 59 err = __hfsplus_setxattr(inode, xattr_name, in hfsplus_initxattrs() 64 kfree(xattr_name); in hfsplus_initxattrs()
|
A D | xattr.c | 397 if (!is_known_namespace(xattr_name)) in name_len() 425 char *xattr_name; in hfsplus_setxattr() local 430 if (!xattr_name) in hfsplus_setxattr() 432 strcpy(xattr_name, prefix); in hfsplus_setxattr() 433 strcpy(xattr_name + prefixlen, name); in hfsplus_setxattr() 435 kfree(xattr_name); in hfsplus_setxattr() 580 char *xattr_name; in hfsplus_getxattr() local 584 if (!xattr_name) in hfsplus_getxattr() 587 strcpy(xattr_name, prefix); in hfsplus_getxattr() 591 kfree(xattr_name); in hfsplus_getxattr() [all …]
|
/linux/fs/btrfs/ |
A D | props.c | 19 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() 329 .xattr_name = XATTR_BTRFS_PREFIX "compression", 386 ret = btrfs_setxattr(trans, inode, h->xattr_name, value, in inherit_props() 391 btrfs_setxattr(trans, inode, h->xattr_name, in inherit_props() 451 u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name)); in btrfs_props_init()
|
/linux/security/integrity/ima/ |
A D | ima_appraise.c | 551 static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name, in ima_protect_xattr() argument 554 if (strcmp(xattr_name, XATTR_NAME_IMA) == 0) { in ima_protect_xattr() 640 int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, in ima_inode_setxattr() argument 647 result = ima_protect_xattr(dentry, xattr_name, xattr_value, in ima_inode_setxattr() 653 } else if (!strcmp(xattr_name, XATTR_NAME_EVM) && xattr_value_len > 0) { in ima_inode_setxattr() 656 if (result == 1 || evm_revalidate_status(xattr_name)) { in ima_inode_setxattr() 666 int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name) in ima_inode_removexattr() argument 670 result = ima_protect_xattr(dentry, xattr_name, NULL, 0); in ima_inode_removexattr() 671 if (result == 1 || evm_revalidate_status(xattr_name)) { in ima_inode_removexattr()
|
/linux/fs/nfs/ |
A D | nfs42xattr.c | 84 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()
|
A D | nfs42xdr.c | 447 encode_string(xdr, strlen(arg->xattr_name), arg->xattr_name); in encode_setxattr() 1520 encode_getxattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_getxattr() 1603 encode_removexattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_removexattr()
|
A D | nfs42proc.c | 1155 .xattr_name = name, in _nfs42_proc_removexattr() 1183 .xattr_name = name, in _nfs42_proc_setxattr() 1224 .xattr_name = name, in _nfs42_proc_getxattr()
|
/linux/fs/ksmbd/ |
A D | vfs.h | 104 char *xattr_name,
|
A D | vfs.c | 917 struct dentry *dentry, char *xattr_name) in ksmbd_vfs_xattr_len() argument 919 return vfs_getxattr(user_ns, dentry, xattr_name, NULL, 0); in ksmbd_vfs_xattr_len() 933 char *xattr_name, char **xattr_buf) in ksmbd_vfs_getxattr() argument 939 xattr_len = ksmbd_vfs_xattr_len(user_ns, dentry, xattr_name); in ksmbd_vfs_getxattr() 947 xattr_len = vfs_getxattr(user_ns, dentry, xattr_name, in ksmbd_vfs_getxattr()
|
/linux/security/ |
A D | security.c | 1056 const char **xattr_name, void **ctx, in security_dentry_init_security() argument 1060 name, xattr_name, ctx, ctxlen); in security_dentry_init_security()
|
/linux/security/selinux/ |
A D | hooks.c | 2936 const char **xattr_name, void **ctx, in selinux_dentry_init_security() argument 2949 if (xattr_name) in selinux_dentry_init_security() 2950 *xattr_name = XATTR_NAME_SELINUX; in selinux_dentry_init_security()
|
/linux/fs/cifs/ |
A D | cifspdu.h | 2728 char xattr_name[]; member
|