Home
last modified time | relevance | path

Searched refs:xattr (Results 1 – 25 of 148) sorted by relevance

123456

/openbmc/linux/security/integrity/evm/
H A Devm_secfs.c133 struct xattr_list *xattr; in evm_read_xattrs() local
142 list_for_each_entry(xattr, &evm_config_xattrnames, list) { in evm_read_xattrs()
143 if (!xattr->enabled) in evm_read_xattrs()
146 size += strlen(xattr->name) + 1; in evm_read_xattrs()
155 list_for_each_entry(xattr, &evm_config_xattrnames, list) { in evm_read_xattrs()
156 if (!xattr->enabled) in evm_read_xattrs()
159 sprintf(temp + offset, "%s\n", xattr->name); in evm_read_xattrs()
160 offset += strlen(xattr->name) + 1; in evm_read_xattrs()
184 struct xattr_list *xattr, *tmp; in evm_write_xattrs() local
203 xattr = kmalloc(sizeof(struct xattr_list), GFP_KERNEL); in evm_write_xattrs()
[all …]
H A Devm_crypto.c227 struct xattr_list *xattr; in evm_calc_hmac_or_hash() local
246 list_for_each_entry_lockless(xattr, &evm_config_xattrnames, list) { in evm_calc_hmac_or_hash()
249 if (strcmp(xattr->name, XATTR_NAME_IMA) == 0) in evm_calc_hmac_or_hash()
256 if (type != EVM_XATTR_PORTABLE_DIGSIG && !xattr->enabled) in evm_calc_hmac_or_hash()
260 && !strcmp(xattr->name, req_xattr_name)) { in evm_calc_hmac_or_hash()
272 size = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr->name, in evm_calc_hmac_or_hash()
282 xattr->name, NULL, 0); in evm_calc_hmac_or_hash()
285 dentry->d_name.name, xattr->name, size, in evm_calc_hmac_or_hash()
293 dump_security_xattr(xattr->name, xattr_value, xattr_size); in evm_calc_hmac_or_hash()
377 data.hdr.xattr.sha1.type = EVM_XATTR_HMAC; in evm_update_evmxattr()
[all …]
H A Devm_main.c135 struct xattr_list *xattr; in evm_find_protected_xattrs() local
142 list_for_each_entry_lockless(xattr, &evm_config_xattrnames, list) { in evm_find_protected_xattrs()
143 error = __vfs_getxattr(dentry, inode, xattr->name, NULL, 0); in evm_find_protected_xattrs()
286 struct xattr_list *xattr; in evm_protected_xattr_common() local
289 list_for_each_entry_lockless(xattr, &evm_config_xattrnames, list) { in evm_protected_xattr_common()
290 if (!all_xattrs && !xattr->enabled) in evm_protected_xattr_common()
293 if ((strlen(xattr->name) == namelen) in evm_protected_xattr_common()
294 && (strncmp(req_xattr_name, xattr->name, namelen) == 0)) { in evm_protected_xattr_common()
299 xattr->name + XATTR_SECURITY_PREFIX_LEN, in evm_protected_xattr_common()
336 struct xattr_list *xattr; in evm_read_protected_xattrs() local
[all …]
H A Devm_posix_acl.c12 int posix_xattr_acl(const char *xattr) in posix_xattr_acl() argument
14 int xattr_len = strlen(xattr); in posix_xattr_acl()
17 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) in posix_xattr_acl()
20 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) in posix_xattr_acl()
/openbmc/linux/fs/ceph/
H A Dxattr.c19 struct ceph_inode_xattr *xattr);
575 struct ceph_inode_xattr *xattr = NULL; in __set_xattr() local
582 xattr = rb_entry(parent, struct ceph_inode_xattr, node); in __set_xattr()
583 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr()
589 if (name_len == xattr->name_len) in __set_xattr()
591 else if (name_len < xattr->name_len) in __set_xattr()
596 xattr = NULL; in __set_xattr()
602 if (xattr && (flags & XATTR_CREATE)) in __set_xattr()
604 else if (!xattr && (flags & XATTR_REPLACE)) in __set_xattr()
613 if (xattr) in __set_xattr()
[all …]
/openbmc/linux/fs/hfsplus/
H A Dxattr_security.c37 const struct xattr *xattr_array, in hfsplus_initxattrs()
40 const struct xattr *xattr; in hfsplus_initxattrs() local
48 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in hfsplus_initxattrs()
50 if (!strcmp(xattr->name, "")) in hfsplus_initxattrs()
55 XATTR_SECURITY_PREFIX_LEN, xattr->name); in hfsplus_initxattrs()
57 XATTR_SECURITY_PREFIX_LEN + strlen(xattr->name), 0, 1); in hfsplus_initxattrs()
60 xattr->value, xattr->value_len, 0); in hfsplus_initxattrs()
/openbmc/linux/fs/jffs2/
H A Dsecurity.c27 const struct xattr *xattr_array, void *fs_info) in jffs2_initxattrs()
29 const struct xattr *xattr; in jffs2_initxattrs() local
32 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in jffs2_initxattrs()
34 xattr->name, xattr->value, in jffs2_initxattrs()
35 xattr->value_len, 0); in jffs2_initxattrs()
/openbmc/linux/fs/ext2/
H A Dxattr_security.c31 static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext2_initxattrs()
34 const struct xattr *xattr; in ext2_initxattrs() local
37 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext2_initxattrs()
39 xattr->name, xattr->value, in ext2_initxattrs()
40 xattr->value_len, 0); in ext2_initxattrs()
/openbmc/linux/fs/ext4/
H A Dxattr_security.c36 ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext4_initxattrs()
39 const struct xattr *xattr; in ext4_initxattrs() local
43 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext4_initxattrs()
46 xattr->name, xattr->value, in ext4_initxattrs()
47 xattr->value_len, XATTR_CREATE); in ext4_initxattrs()
/openbmc/linux/fs/jfs/
H A Dxattr.c64 struct jfs_ea_list *xattr; /* buffer containing ea list */ member
447 ea_buf->xattr = NULL; in ea_get()
454 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
466 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get()
489 ea_buf->xattr = kmalloc(ea_buf->max_size, GFP_KERNEL); in ea_get()
490 if (ea_buf->xattr == NULL) in ea_get()
498 if ((rc = ea_read(inode, ea_buf->xattr))) { in ea_get()
499 kfree(ea_buf->xattr); in ea_get()
500 ea_buf->xattr = NULL; in ea_get()
536 ea_buf->xattr = ea_buf->mp->data; in ea_get()
[all …]
/openbmc/linux/fs/squashfs/
H A Dxattr.c32 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_listxattr()
34 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr); in squashfs_listxattr()
110 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_xattr_get()
112 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr); in squashfs_xattr_get()
150 u64 xattr; in squashfs_xattr_get() local
160 xattr = le64_to_cpu(xattr_val); in squashfs_xattr_get()
161 start = SQUASHFS_XATTR_BLK(xattr) + in squashfs_xattr_get()
163 offset = SQUASHFS_XATTR_OFFSET(xattr); in squashfs_xattr_get()
H A Dinode.c200 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
254 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
297 __le32 xattr; in squashfs_read_inode() local
303 err = squashfs_read_metadata(sb, &xattr, &block, in squashfs_read_inode()
304 &offset, sizeof(xattr)); in squashfs_read_inode()
307 xattr_id = le32_to_cpu(xattr); in squashfs_read_inode()
351 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
391 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
406 &squashfs_i(inode)->xattr); in squashfs_read_inode()
H A Dxattr_id.c29 int *count, unsigned int *size, unsigned long long *xattr) in squashfs_xattr_lookup() argument
48 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup()
H A Dsquashfs_fs.h296 __le32 xattr; member
319 __le32 xattr; member
361 __le32 xattr; member
392 __le32 xattr; member
441 __le64 xattr; member
/openbmc/openbmc/meta-security/recipes-ids/samhain/files/
H A Dfix-build-with-new-version-attr.patch6 The attr/xattr.h has been removed from attr 2.4.48 with commit:
8 The xattr syscalls are provided by sys/xattr.h from glibc now.
27 - AC_CHECK_HEADERS(attr/xattr.h)
66 -#include <attr/xattr.h>
67 +#include <sys/xattr.h>
/openbmc/linux/fs/
H A Dxattr.c1073 void simple_xattr_free(struct simple_xattr *xattr) in simple_xattr_free() argument
1075 if (xattr) in simple_xattr_free()
1076 kfree(xattr->name); in simple_xattr_free()
1077 kvfree(xattr); in simple_xattr_free()
1123 const struct simple_xattr *xattr; in rbtree_simple_xattr_cmp() local
1125 xattr = rb_entry(node, struct simple_xattr, rb_node); in rbtree_simple_xattr_cmp()
1126 return strcmp(xattr->name, xattr_name); in rbtree_simple_xattr_cmp()
1142 struct simple_xattr *xattr; in rbtree_simple_xattr_node_cmp() local
1143 xattr = rb_entry(new_node, struct simple_xattr, rb_node); in rbtree_simple_xattr_node_cmp()
1144 return rbtree_simple_xattr_cmp(xattr->name, node); in rbtree_simple_xattr_node_cmp()
[all …]
/openbmc/openbmc/poky/meta-selftest/recipes-devtools/mtd/
H A Dmtd-utils-selftest_git.bb23 # xattr support creates an additional compile-time dependency on acl because
24 # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr
26 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs"
28 PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
36 …LIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_X…
/openbmc/openbmc/poky/meta/recipes-devtools/patch/
H A Dpatch_2.7.6.bb23 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}"
24 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
/openbmc/openbmc/poky/meta/recipes-devtools/mtd/
H A Dmtd-utils_2.2.1.bb19 # xattr support creates an additional compile-time dependency on acl because
20 # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr
22 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs"
24 PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
32 …LIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_X…
/openbmc/linux/fs/btrfs/
H A Dxattr.c454 const struct xattr *xattr_array, void *fs_private) in btrfs_initxattrs()
457 const struct xattr *xattr; in btrfs_initxattrs() local
467 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in btrfs_initxattrs()
469 strlen(xattr->name) + 1, GFP_KERNEL); in btrfs_initxattrs()
475 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in btrfs_initxattrs()
476 err = btrfs_setxattr(trans, inode, name, xattr->value, in btrfs_initxattrs()
477 xattr->value_len, 0); in btrfs_initxattrs()
/openbmc/openbmc/meta-security/recipes-ids/aide/
H A Daide_0.18.8.bb21 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \
25 PACKAGECONFIG[xattr] = "--with-xattr, --without-xattr, attr, attr"
/openbmc/linux/fs/ubifs/
H A Dxattr.c126 ui->xattr = 1; in create_xattr()
256 if (ubifs_inode(inode)->xattr) in iget_xattr()
540 ubifs_assert(c, ubifs_inode(xino)->xattr); in ubifs_purge_xattrs()
644 static int init_xattrs(struct inode *inode, const struct xattr *xattr_array, in init_xattrs()
647 const struct xattr *xattr; in init_xattrs() local
651 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in init_xattrs()
653 strlen(xattr->name) + 1, GFP_NOFS); in init_xattrs()
659 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in init_xattrs()
664 err = ubifs_xattr_set(inode, name, xattr->value, in init_xattrs()
665 xattr->value_len, 0, false); in init_xattrs()
/openbmc/openbmc/poky/meta/recipes-extended/libarchive/
H A Dlibarchive_3.7.7.bb10 PACKAGECONFIG ?= "zlib bz2 xz zstd ${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)}"
16 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
/openbmc/linux/Documentation/filesystems/
H A Derofs.rst103 (no)user_xattr Setup Extended User Attributes. Note: xattr is enabled
224 Each share xattr can also be directly found by the following formula:
225 xattr offset = xattr_blkaddr * block_size + 4 * xattr_id
232 | ... | xattr_entry | xattr data | ... | xattr_entry | xattr data ...
279 The long xattr name prefixes feature is introduced to address this issue. The
280 overall idea is that, apart from the existing predefined prefixes, the xattr
281 entry could also refer to user-specified long xattr name prefixes, e.g.
284 When referring to a long xattr name prefix, the highest bit (bit 7) of
288 xattr name prefix is stored in erofs_xattr_entry.e_name, which could be empty if
289 the full xattr name matches exactly as its long xattr name prefix.
[all …]
/openbmc/qemu/hw/9pfs/
H A Dmeson.build6 '9p-xattr-user.c',
7 '9p-xattr.c',

123456