/linux/fs/ |
H A D | xattr.c | 1299 int simple_xattr_get(struct simple_xattrs *xattrs, const char *name, in simple_xattr_get() argument 1306 read_lock(&xattrs->lock); in simple_xattr_get() 1307 rbp = rb_find(name, &xattrs->rb_root, rbtree_simple_xattr_cmp); in simple_xattr_get() 1318 read_unlock(&xattrs->lock); in simple_xattr_get() 1348 struct simple_xattr *simple_xattr_set(struct simple_xattrs *xattrs, in simple_xattr_set() argument 1369 write_lock(&xattrs->lock); in simple_xattr_set() 1370 rbp = &xattrs->rb_root.rb_node; in simple_xattr_set() 1393 &new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set() 1395 rb_erase(&old_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set() 1409 rb_insert_color(&new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set() [all …]
|
/linux/security/integrity/evm/ |
H A D | Kconfig | 32 bool "Additional SMACK xattrs" 36 Include additional SMACK xattrs for HMAC calculation. 38 In addition to the original security xattrs (eg. security.selinux, 41 Smack xattrs: security.SMACK64EXEC, security.SMACK64TRANSMUTE and 53 Allow userland to provide additional xattrs for HMAC calculation. 55 When this option is enabled, root can add additional xattrs to the
|
H A D | evm_main.c | 89 int i, xattrs; in evm_init_config() local 91 xattrs = ARRAY_SIZE(evm_config_default_xattrnames); in evm_init_config() 94 for (i = 0; i < xattrs; i++) { in evm_init_config() 1014 const struct qstr *qstr, struct xattr *xattrs, in evm_inode_init_security() argument 1022 if (!(evm_initialized & EVM_INIT_HMAC) || !xattrs) in evm_inode_init_security() 1030 for (xattr = xattrs; xattr->name; xattr++) { in evm_inode_init_security() 1039 evm_xattr = lsm_get_xattr_slot(xattrs, xattr_count); in evm_inode_init_security() 1053 rc = evm_init_hmac(inode, xattrs, xattr_data->digest); in evm_inode_init_security()
|
H A D | evm.h | 84 int evm_init_hmac(struct inode *inode, const struct xattr *xattrs,
|
H A D | evm_crypto.c | 399 int evm_init_hmac(struct inode *inode, const struct xattr *xattrs, in evm_init_hmac() argument 411 for (xattr = xattrs; xattr->name; xattr++) { in evm_init_hmac()
|
/linux/fs/kernfs/ |
H A D | inode.c | 49 simple_xattrs_init(&kn->iattr->xattrs); in __kernfs_iattrs() 148 return simple_xattr_list(d_inode(dentry), &attrs->xattrs, buf, size); in kernfs_iop_listxattr() 302 return simple_xattr_get(&attrs->xattrs, name, value, size); in kernfs_xattr_get() 313 old_xattr = simple_xattr_set(&attrs->xattrs, name, value, size, flags); in kernfs_xattr_set() 345 struct simple_xattrs *xattrs, in kernfs_vfs_user_xattr_add() argument 363 old_xattr = simple_xattr_set(xattrs, full_name, value, size, flags); in kernfs_vfs_user_xattr_add() 384 struct simple_xattrs *xattrs, in kernfs_vfs_user_xattr_rm() argument 391 old_xattr = simple_xattr_set(xattrs, full_name, value, size, flags); in kernfs_vfs_user_xattr_rm() 422 return kernfs_vfs_user_xattr_add(kn, full_name, &attrs->xattrs, in kernfs_vfs_user_xattr_set() 425 return kernfs_vfs_user_xattr_rm(kn, full_name, &attrs->xattrs, in kernfs_vfs_user_xattr_set()
|
H A D | kernfs-internal.h | 29 struct simple_xattrs xattrs; member
|
H A D | dir.c | 539 simple_xattrs_free(&kn->iattr->xattrs, NULL); in kernfs_free_rcu()
|
/linux/include/linux/ |
H A D | lsm_hooks.h | 186 static inline struct xattr *lsm_get_xattr_slot(struct xattr *xattrs, in lsm_get_xattr_slot() argument 189 if (unlikely(!xattrs)) in lsm_get_xattr_slot() 191 return &xattrs[(*xattr_count)++]; in lsm_get_xattr_slot()
|
H A D | evm.h | 22 const struct qstr *qstr, struct xattr *xattrs, 58 struct xattr *xattrs, in evm_inode_init_security() argument
|
/linux/fs/smb/client/ |
H A D | reparse.c | 603 struct wsl_xattr xattrs[] = { in wsl_set_xattrs() local 618 num_xattrs = ARRAY_SIZE(xattrs) - 1; in wsl_set_xattrs() 620 num_xattrs = ARRAY_SIZE(xattrs); in wsl_set_xattrs() 623 xattrs[i].next = ALIGN(sizeof(*ea) + name_size + in wsl_set_xattrs() 624 xattrs[i].size, 4); in wsl_set_xattrs() 625 dlen += xattrs[i].next; in wsl_set_xattrs() 635 next = xattrs[i].next; in wsl_set_xattrs() 639 ea->ea_value_length = cpu_to_le16(xattrs[i].size); in wsl_set_xattrs() 640 memcpy(ea->ea_data, xattrs[i].name, name_size); in wsl_set_xattrs() 642 &xattrs[i].value, xattrs[i].size); in wsl_set_xattrs()
|
/linux/Documentation/filesystems/ |
H A D | erofs.rst | 172 | ... | inode | xattrs | extents | data inline | ... | inode ... 182 | xattr_ibody_header | shared xattrs | inline xattrs | 218 The size of the optional xattrs is indicated by i_xattr_count in inode 219 header. Large xattrs or xattrs shared by many different files can be 220 stored in shared xattrs metadata rather than inlined right after inode. 222 2. Shared xattrs metadata space 224 Shared xattrs space is similar to the above inode space, started with 280 only a few common prefixes (such as overlayfs xattrs). The predefined prefixes
|
H A D | squashfs.rst | 278 The xattr table contains extended attributes for each inode. The xattrs
|
/linux/fs/overlayfs/ |
H A D | Makefile | 9 copy_up.o export.o params.o xattrs.o
|
/linux/Documentation/admin-guide/cifs/ |
H A D | todo.rst | 36 (stat, statfs, create, unlink, mkdir, xattrs) already have been improved by 49 h) implement support for security and trusted categories of xattrs
|
H A D | usage.rst | 160 Note that server ea support is required for supporting xattrs from the Linux 537 Allow getting and setting user xattrs (those attributes whose 542 Do not allow getfattr/setfattr to get/set/list xattrs
|
/linux/fs/ubifs/ |
H A D | Kconfig | 70 Saying Y here includes support for extended attributes (xattrs).
|
/linux/Documentation/ABI/testing/ |
H A D | evm | 6 EVM protects a file's security extended attributes(xattrs)
|
/linux/Documentation/security/ |
H A D | ipe.rst | 21 as a result, xattrs would have to be protected. This lead to a selection 46 modify filesystem offline, the attacker could wipe all the xattrs - 50 With DM-Verity, as the xattrs are saved as part of the Merkel tree, if
|
/linux/Documentation/filesystems/ext4/ |
H A D | attributes.rst | 6 Extended attributes (xattrs) are typically stored in a separate data
|
/linux/fs/erofs/ |
H A D | Kconfig | 11 xattrs/data, chunk-based deduplication, multiple devices, etc.) for
|
/linux/mm/ |
H A D | shmem.c | 1373 simple_xattrs_free(&info->xattrs, sbinfo->max_inodes ? &freed : NULL); in shmem_evict_inode() 3082 simple_xattrs_init(&info->xattrs); in __shmem_get_inode() 4291 simple_xattr_add(&info->xattrs, new_xattr); in shmem_initxattrs() 4300 simple_xattrs_free(&info->xattrs, NULL); in shmem_initxattrs() 4314 return simple_xattr_get(&info->xattrs, name, buffer, size); in shmem_xattr_handler_get() 4341 old_xattr = simple_xattr_set(&info->xattrs, name, value, size, flags); in shmem_xattr_handler_set() 4388 return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); in shmem_listxattr()
|
/linux/fs/squashfs/ |
H A D | Kconfig | 146 Saying Y here includes support for extended attributes (xattrs).
|
/linux/fs/bcachefs/ |
H A D | bcachefs_format.h | 1323 x(xattrs, 3, \
|
/linux/Documentation/filesystems/caching/ |
H A D | cachefiles.rst | 73 - extended attributes (xattrs).
|