Home
last modified time | relevance | path

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

1234567

/linux/security/integrity/evm/
A Devm_secfs.c133 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 …]
A Devm_crypto.c220 struct xattr_list *xattr; in evm_calc_hmac_or_hash() local
242 if (strcmp(xattr->name, XATTR_NAME_IMA) == 0) in evm_calc_hmac_or_hash()
249 if (type != EVM_XATTR_PORTABLE_DIGSIG && !xattr->enabled) in evm_calc_hmac_or_hash()
253 && !strcmp(xattr->name, req_xattr_name)) { in evm_calc_hmac_or_hash()
271 size = vfs_getxattr_alloc(&init_user_ns, dentry, xattr->name, in evm_calc_hmac_or_hash()
281 xattr->name, NULL, 0); in evm_calc_hmac_or_hash()
284 dentry->d_name.name, xattr->name, size, in evm_calc_hmac_or_hash()
293 pr_debug("%s: (%zu) [%*phN]", xattr->name, xattr_size, in evm_calc_hmac_or_hash()
296 dump_security_xattr(xattr->name, xattr_value, in evm_calc_hmac_or_hash()
380 data.hdr.xattr.sha1.type = EVM_XATTR_HMAC; in evm_update_evmxattr()
[all …]
A Devm_main.c140 struct xattr_list *xattr; in evm_find_protected_xattrs() local
291 struct xattr_list *xattr; in evm_protected_xattr_common() local
295 if (!all_xattrs && !xattr->enabled) in evm_protected_xattr_common()
298 if ((strlen(xattr->name) == namelen) in evm_protected_xattr_common()
304 xattr->name + XATTR_SECURITY_PREFIX_LEN, in evm_protected_xattr_common()
342 struct xattr_list *xattr; in evm_read_protected_xattrs() local
347 xattr->name, NULL, 0); in evm_read_protected_xattrs()
355 size = strlen(xattr->name) + 1; in evm_read_protected_xattrs()
376 d_backing_inode(dentry), xattr->name, in evm_read_protected_xattrs()
842 const struct xattr *lsm_xattr, in evm_inode_init_security()
[all …]
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()
A Devm.h64 int evm_init_hmac(struct inode *inode, const struct xattr *xattr,
/linux/fs/ceph/
A Dxattr.c576 if (xattr) in __set_xattr()
642 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr()
651 xattr->val_len, xattr->val); in __get_xattr()
676 if (!xattr) in __remove_xattr()
705 memcpy(dest, xattr->name, xattr->name_len); in __copy_xattr_names()
732 xattr->name_len, xattr->name); in __ceph_destroy_xattrs()
880 memcpy(dest, xattr->name, xattr->name_len); in __ceph_build_xattrs_blob()
883 memcpy(dest, xattr->val, xattr->val_len); in __ceph_build_xattrs_blob()
981 if (!xattr) in __ceph_getxattr()
992 memcpy(value, xattr->val, xattr->val_len); in __ceph_getxattr()
[all …]
/linux/fs/hfsplus/
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()
/linux/fs/jffs2/
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()
/linux/fs/ext2/
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()
/linux/fs/ext4/
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()
/linux/fs/jfs/
A Dxattr.c445 ea_buf->xattr = NULL; in ea_get()
488 if (ea_buf->xattr == NULL) in ea_get()
497 kfree(ea_buf->xattr); in ea_get()
498 ea_buf->xattr = NULL; in ea_get()
534 ea_buf->xattr = ea_buf->mp->data; in ea_get()
554 ea_buf->xattr = ea_buf->mp->data; in ea_get()
581 kfree(ea_buf->xattr); in ea_release()
611 kfree(ea_buf->xattr); in ea_put()
1005 const struct xattr *xattr; in jfs_initxattrs() local
1010 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in jfs_initxattrs()
[all …]
/linux/tools/lib/bpf/
A Dlibbpf_probes.c71 struct bpf_load_program_attr xattr = {}; in probe_load() local
76 xattr.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_load()
79 xattr.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_load()
82 xattr.expected_attach_type = BPF_SK_LOOKUP; in probe_load()
85 xattr.kern_version = get_kernel_version(); in probe_load()
118 xattr.prog_type = prog_type; in probe_load()
119 xattr.insns = insns; in probe_load()
120 xattr.insns_cnt = insns_cnt; in probe_load()
121 xattr.license = "GPL"; in probe_load()
122 xattr.prog_ifindex = ifindex; in probe_load()
[all …]
/linux/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c22 static struct bpf_create_map_attr xattr = { variable
153 xattr.btf_fd = btf_fd; in create_sk_storage_map()
155 map_fd = bpf_create_map_xattr(&xattr); in create_sk_storage_map()
156 xattr.btf_fd = -1; in create_sk_storage_map()
472 xattr.btf_fd = btf_fd; in test_sk_storage_map_basic()
478 map_fd = bpf_create_map_xattr(&xattr); in test_sk_storage_map_basic()
563 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
569 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
575 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
581 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
[all …]
A Darray_map_batch_ops.c71 struct bpf_create_map_attr xattr = { in __test_map_lookup_and_update_batch() local
89 xattr.max_entries = max_entries; in __test_map_lookup_and_update_batch()
90 map_fd = bpf_create_map_xattr(&xattr); in __test_map_lookup_and_update_batch()
/linux/fs/
A Dxattr.c966 struct simple_xattr *xattr; in simple_xattr_get() local
974 ret = xattr->size; in simple_xattr_get()
976 if (size < xattr->size) in simple_xattr_get()
979 memcpy(buffer, xattr->value, xattr->size); in simple_xattr_get()
1030 xattr = new_xattr; in simple_xattr_set()
1037 list_del(&xattr->list); in simple_xattr_set()
1045 xattr = new_xattr; in simple_xattr_set()
1049 xattr = NULL; in simple_xattr_set()
1053 if (xattr) { in simple_xattr_set()
1054 kfree(xattr->name); in simple_xattr_set()
[all …]
/linux/fs/squashfs/
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()
A Dinode.c197 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
251 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
289 __le32 xattr; in squashfs_read_inode() local
295 err = squashfs_read_metadata(sb, &xattr, &block, in squashfs_read_inode()
296 &offset, sizeof(xattr)); in squashfs_read_inode()
299 xattr_id = le32_to_cpu(xattr); in squashfs_read_inode()
343 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
383 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode()
398 &squashfs_i(inode)->xattr); in squashfs_read_inode()
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()
A Dsquashfs_fs.h296 __le32 xattr; member
319 __le32 xattr; member
361 __le32 xattr; member
392 __le32 xattr; member
441 __le64 xattr; member
/linux/include/linux/
A Dxattr.h46 struct xattr { struct
108 struct simple_xattr *xattr, *node; in simple_xattrs_free() local
110 list_for_each_entry_safe(xattr, node, &xattrs->head, list) { in simple_xattrs_free()
111 kfree(xattr->name); in simple_xattrs_free()
112 kvfree(xattr); in simple_xattrs_free()
A Devm.h38 const struct xattr *xattr_array,
39 struct xattr *evm);
110 const struct xattr *xattr_array, in evm_inode_init_security()
111 struct xattr *evm) in evm_inode_init_security()
/linux/fs/btrfs/
A Dxattr.c466 const struct xattr *xattr_array, void *fs_private) in btrfs_initxattrs()
469 const struct xattr *xattr; in btrfs_initxattrs() local
479 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in btrfs_initxattrs()
481 strlen(xattr->name) + 1, GFP_KERNEL); in btrfs_initxattrs()
487 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in btrfs_initxattrs()
488 err = btrfs_setxattr(trans, inode, name, xattr->value, in btrfs_initxattrs()
489 xattr->value_len, 0); in btrfs_initxattrs()
/linux/fs/ubifs/
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()
/linux/Documentation/filesystems/
A Dsquashfs.rst96 | xattr |
103 xattr tables are written.
220 The xattr table contains extended attributes for each inode. The xattrs
222 name and value field. The type field encodes the xattr prefix
225 is stored inline (in which case the value field contains the xattr value),
232 The xattr lists are packed into compressed 8K metadata blocks.
234 location of the xattr list inside each inode, a 32-bit xattr id
235 is stored. This xattr id is mapped into the location of the xattr
236 list using a second xattr id lookup table.
/linux/fs/f2fs/
A Dxattr.c138 static int f2fs_initxattrs(struct inode *inode, const struct xattr *xattr_array, in f2fs_initxattrs()
141 const struct xattr *xattr; in f2fs_initxattrs() local
144 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in f2fs_initxattrs()
146 xattr->name, xattr->value, in f2fs_initxattrs()
147 xattr->value_len, (struct page *)page, 0); in f2fs_initxattrs()

Completed in 51 milliseconds

1234567