/openbmc/linux/security/integrity/evm/ |
H A D | evm_secfs.c | 133 struct xattr_list *xattr; in evm_read_xattrs() local 143 if (!xattr->enabled) in evm_read_xattrs() 156 if (!xattr->enabled) in evm_read_xattrs() 204 if (!xattr) { in evm_write_xattrs() 209 xattr->enabled = true; in evm_write_xattrs() 211 if (IS_ERR(xattr->name)) { in evm_write_xattrs() 213 xattr->name = NULL; in evm_write_xattrs() 218 len = strlen(xattr->name); in evm_write_xattrs() 273 if (xattr) { in evm_write_xattrs() 274 kfree(xattr->name); in evm_write_xattrs() [all …]
|
H A D | evm_crypto.c | 227 struct xattr_list *xattr; in evm_calc_hmac_or_hash() local 249 if (strcmp(xattr->name, XATTR_NAME_IMA) == 0) in evm_calc_hmac_or_hash() 260 && !strcmp(xattr->name, req_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() 377 data.hdr.xattr.sha1.type = EVM_XATTR_HMAC; in evm_update_evmxattr() 380 &data.hdr.xattr.data[1], in evm_update_evmxattr() 392 const struct xattr *xattr; in evm_init_hmac() local 400 for (xattr = xattrs; xattr->name; xattr++) { in evm_init_hmac() 401 if (!evm_protected_xattr(xattr->name)) in evm_init_hmac() [all …]
|
H A D | evm_main.c | 135 struct xattr_list *xattr; in evm_find_protected_xattrs() local 286 struct xattr_list *xattr; in evm_protected_xattr_common() local 290 if (!all_xattrs && !xattr->enabled) in evm_protected_xattr_common() 293 if ((strlen(xattr->name) == namelen) in evm_protected_xattr_common() 336 struct xattr_list *xattr; in evm_read_protected_xattrs() local 341 xattr->name, NULL, 0); in evm_read_protected_xattrs() 349 size = strlen(xattr->name) + 1; in evm_read_protected_xattrs() 882 struct xattr *xattr, *evm_xattr; in evm_inode_init_security() local 894 for (xattr = xattrs; xattr->name; xattr++) { in evm_inode_init_security() 895 if (evm_protected_xattr(xattr->name)) in evm_inode_init_security() [all …]
|
H A D | evm_posix_acl.c | 12 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/hfsplus/ |
H A D | xattr_security.c | 37 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/ceph/ |
H A D | xattr.c | 613 if (xattr) in __set_xattr() 681 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr() 692 xattr->val, xattr->val_len > len ? "..." : ""); in __get_xattr() 717 if (!xattr) in __remove_xattr() 746 memcpy(dest, xattr->name, xattr->name_len); in __copy_xattr_names() 773 xattr->name_len, xattr->name); in __ceph_destroy_xattrs() 921 memcpy(dest, xattr->name, xattr->name_len); in __ceph_build_xattrs_blob() 924 memcpy(dest, xattr->val, xattr->val_len); in __ceph_build_xattrs_blob() 1031 if (!xattr) in __ceph_getxattr() 1042 memcpy(value, xattr->val, xattr->val_len); in __ceph_getxattr() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | xattr_security.c | 31 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/jffs2/ |
H A D | security.c | 27 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/ext4/ |
H A D | xattr_security.c | 36 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 D | xattr.c | 447 ea_buf->xattr = NULL; in ea_get() 490 if (ea_buf->xattr == NULL) in ea_get() 499 kfree(ea_buf->xattr); in ea_get() 500 ea_buf->xattr = NULL; in ea_get() 556 ea_buf->xattr = ea_buf->mp->data; in ea_get() 566 ea_buf->xattr, size, 1); in ea_get() 585 kfree(ea_buf->xattr); in ea_release() 615 kfree(ea_buf->xattr); in ea_put() 1020 const struct xattr *xattr; in jfs_initxattrs() local 1025 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in jfs_initxattrs() [all …]
|
/openbmc/openbmc/meta-security/recipes-ids/samhain/files/ |
H A D | fix-build-with-new-version-attr.patch | 6 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/squashfs/ |
H A D | xattr.c | 32 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 D | inode.c | 200 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 D | xattr_id.c | 29 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 D | squashfs_fs.h | 296 __le32 xattr; member 319 __le32 xattr; member 361 __le32 xattr; member 392 __le32 xattr; member 441 __le64 xattr; member
|
/openbmc/openbmc/poky/meta/recipes-devtools/patch/ |
H A D | patch_2.7.6.bb | 23 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}" 24 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
|
/openbmc/openbmc/poky/meta-selftest/recipes-devtools/mtd/ |
H A D | mtd-utils-selftest_git.bb | 23 # 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/linux/fs/ |
H A D | xattr.c | 1075 if (xattr) in simple_xattr_free() 1076 kfree(xattr->name); in simple_xattr_free() 1077 kvfree(xattr); in simple_xattr_free() 1142 struct simple_xattr *xattr; in rbtree_simple_xattr_node_cmp() local 1173 ret = xattr->size; in simple_xattr_get() 1175 if (size < xattr->size) in simple_xattr_get() 1178 memcpy(buffer, xattr->value, xattr->size); in simple_xattr_get() 1317 struct simple_xattr *xattr; in simple_xattr_list() local 1404 struct simple_xattr *xattr; in simple_xattrs_free() local 1412 xattr->size); in simple_xattrs_free() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/mtd/ |
H A D | mtd-utils_git.bb | 21 # xattr support creates an additional compile-time dependency on acl because 22 # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr 24 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs" 26 PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl" 34 …LIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_X…
|
/openbmc/linux/fs/btrfs/ |
H A D | xattr.c | 454 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 D | aide_0.17.4.bb | 19 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ 23 PACKAGECONFIG[xattr] = "--with-xattr, --without-xattr, attr, attr"
|
/openbmc/linux/fs/ubifs/ |
H A D | xattr.c | 126 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 D | libarchive_3.7.2.bb | 10 PACKAGECONFIG ?= "zlib bz2 xz zstd ${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)}" 16 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
|
/openbmc/qemu/hw/9pfs/ |
H A D | meson.build | 7 '9p-xattr-user.c', 8 '9p-xattr.c',
|
/openbmc/linux/Documentation/filesystems/ |
H A D | erofs.rst | 103 (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 ... 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 289 the full xattr name matches exactly as its long xattr name prefix. 291 All long xattr prefixes are stored one by one in the packed inode as long as 294 long xattr name prefixes, while (xattr_prefix_start * 4) indicates the start [all …]
|