Home
last modified time | relevance | path

Searched refs:xattrs (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/include/linux/
H A Dxattr.h116 void simple_xattrs_init(struct simple_xattrs *xattrs);
117 void simple_xattrs_free(struct simple_xattrs *xattrs, size_t *freed_space);
121 int simple_xattr_get(struct simple_xattrs *xattrs, const char *name,
123 struct simple_xattr *simple_xattr_set(struct simple_xattrs *xattrs,
126 ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs,
128 void simple_xattr_add(struct simple_xattrs *xattrs,
H A Dlsm_hooks.h80 static inline struct xattr *lsm_get_xattr_slot(struct xattr *xattrs, in lsm_get_xattr_slot() argument
83 if (unlikely(!xattrs)) in lsm_get_xattr_slot()
85 return &xattrs[(*xattr_count)++]; in lsm_get_xattr_slot()
H A Devm.h62 const struct qstr *qstr, struct xattr *xattrs,
169 struct xattr *xattrs, in evm_inode_init_security() argument
H A Dshmem_fs.h30 struct simple_xattrs xattrs; /* list of xattrs */ member
/openbmc/linux/fs/
H A Dxattr.c1162 int simple_xattr_get(struct simple_xattrs *xattrs, const char *name, in simple_xattr_get() argument
1169 read_lock(&xattrs->lock); in simple_xattr_get()
1170 rbp = rb_find(name, &xattrs->rb_root, rbtree_simple_xattr_cmp); in simple_xattr_get()
1181 read_unlock(&xattrs->lock); in simple_xattr_get()
1211 struct simple_xattr *simple_xattr_set(struct simple_xattrs *xattrs, in simple_xattr_set() argument
1232 write_lock(&xattrs->lock); in simple_xattr_set()
1233 rbp = &xattrs->rb_root.rb_node; in simple_xattr_set()
1256 &new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set()
1258 rb_erase(&old_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set()
1272 rb_insert_color(&new_xattr->rb_node, &xattrs->rb_root); in simple_xattr_set()
[all …]
/openbmc/linux/security/integrity/evm/
H A DKconfig31 bool "Additional SMACK xattrs"
35 Include additional SMACK xattrs for HMAC calculation.
37 In addition to the original security xattrs (eg. security.selinux,
40 Smack xattrs: security.SMACK64EXEC, security.SMACK64TRANSMUTE and
52 Allow userland to provide additional xattrs for HMAC calculation.
54 When this option is enabled, root can add additional xattrs to the
H A Devm_main.c90 int i, xattrs; in evm_init_config() local
92 xattrs = ARRAY_SIZE(evm_config_default_xattrnames); in evm_init_config()
95 for (i = 0; i < xattrs; i++) { in evm_init_config()
878 const struct qstr *qstr, struct xattr *xattrs, in evm_inode_init_security() argument
886 if (!(evm_initialized & EVM_INIT_HMAC) || !xattrs) in evm_inode_init_security()
894 for (xattr = xattrs; xattr->name; xattr++) { in evm_inode_init_security()
903 evm_xattr = lsm_get_xattr_slot(xattrs, xattr_count); in evm_inode_init_security()
917 rc = evm_init_hmac(inode, xattrs, xattr_data->digest); in evm_inode_init_security()
H A Devm.h63 int evm_init_hmac(struct inode *inode, const struct xattr *xattrs,
H A Devm_crypto.c388 int evm_init_hmac(struct inode *inode, const struct xattr *xattrs, in evm_init_hmac() argument
400 for (xattr = xattrs; xattr->name; xattr++) { in evm_init_hmac()
/openbmc/linux/fs/kernfs/
H A Dinode.c49 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 Dkernfs-internal.h29 struct simple_xattrs xattrs; member
/openbmc/openbmc/meta-security/recipes-ids/aide/aide/
H A Daide.conf54 FIPSR = p+u+g+s+acl+xattrs+sha256
73 DIR = p+u+g+acl+xattrs
86 DATAONLY = p+u+g+s+acl+xattrs+sha256
/openbmc/linux/fs/smb/client/
H A Dreparse.c368 struct wsl_xattr xattrs[] = { in wsl_set_xattrs() local
383 num_xattrs = ARRAY_SIZE(xattrs) - 1; in wsl_set_xattrs()
385 num_xattrs = ARRAY_SIZE(xattrs); in wsl_set_xattrs()
388 xattrs[i].next = ALIGN(sizeof(*ea) + name_size + in wsl_set_xattrs()
389 xattrs[i].size, 4); in wsl_set_xattrs()
390 dlen += xattrs[i].next; in wsl_set_xattrs()
400 next = xattrs[i].next; in wsl_set_xattrs()
404 ea->ea_value_length = cpu_to_le16(xattrs[i].size); in wsl_set_xattrs()
405 memcpy(ea->ea_data, xattrs[i].name, name_size); in wsl_set_xattrs()
407 &xattrs[ in wsl_set_xattrs()
[all...]
/openbmc/linux/fs/ceph/
H A Dxattr.c797 struct ceph_inode_xattr **xattrs = NULL; in __build_xattrs() local
818 xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *), in __build_xattrs()
821 if (!xattrs) in __build_xattrs()
825 xattrs[i] = kmalloc(sizeof(struct ceph_inode_xattr), in __build_xattrs()
827 if (!xattrs[i]) in __build_xattrs()
835 kfree(xattrs[i]); in __build_xattrs()
836 kfree(xattrs); in __build_xattrs()
837 xattrs = NULL; in __build_xattrs()
851 0, 0, &xattrs[numattr]); in __build_xattrs()
856 kfree(xattrs); in __build_xattrs()
[all …]
/openbmc/linux/Documentation/filesystems/
H A Derofs.rst168 | ... | inode | xattrs | extents | data inline | ... | inode ...
178 | xattr_ibody_header | shared xattrs | inline xattrs |
214 The size of the optional xattrs is indicated by i_xattr_count in inode
215 header. Large xattrs or xattrs shared by many different files can be
216 stored in shared xattrs metadata rather than inlined right after inode.
218 2. Shared xattrs metadata space
220 Shared xattrs space is similar to the above inode space, started with
276 only a few common prefixes (such as overlayfs xattrs). The predefined prefixes
/openbmc/openbmc/poky/meta/lib/oe/
H A Dcopy_buildsystem.py26 | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dest)
/openbmc/linux/Documentation/admin-guide/cifs/
H A Dtodo.rst35 (stat, statfs, create, unlink, mkdir, xattrs) already have been improved by
48 h) implement support for security and trusted categories of xattrs
/openbmc/linux/security/apparmor/include/
H A Dpolicy.h165 char **xattrs; member
/openbmc/linux/fs/ubifs/
H A DKconfig70 Saying Y here includes support for extended attributes (xattrs).
/openbmc/linux/Documentation/ABI/testing/
H A Devm6 EVM protects a file's security extended attributes(xattrs)
/openbmc/linux/fs/erofs/
H A DKconfig11 xattrs/data, chunk-based deduplication, multiple devices, etc.) for
/openbmc/linux/security/apparmor/
H A Dpolicy_unpack.c545 profile->attach.xattrs = kcalloc(size, sizeof(char *), GFP_KERNEL); in unpack_xattrs()
546 if (!profile->attach.xattrs) in unpack_xattrs()
549 if (!aa_unpack_strdup(e, &profile->attach.xattrs[i], NULL)) in unpack_xattrs()
H A Dpolicy.c201 kfree_sensitive(attach->xattrs[i]); in free_attachment()
202 kfree_sensitive(attach->xattrs); in free_attachment()
/openbmc/linux/Documentation/filesystems/ext4/
H A Dattributes.rst6 Extended attributes (xattrs) are typically stored in a separate data
/openbmc/linux/mm/
H A Dshmem.c1286 simple_xattrs_free(&info->xattrs, sbinfo->max_inodes ? &freed : NULL); in shmem_evict_inode()
2495 simple_xattrs_init(&info->xattrs); in __shmem_get_inode()
3648 simple_xattr_add(&info->xattrs, new_xattr); in shmem_initxattrs()
3657 simple_xattrs_free(&info->xattrs, NULL); in shmem_initxattrs()
3671 return simple_xattr_get(&info->xattrs, name, buffer, size); in shmem_xattr_handler_get()
3698 old_xattr = simple_xattr_set(&info->xattrs, name, value, size, flags); in shmem_xattr_handler_set()
3745 return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); in shmem_listxattr()

12