/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | xattr_cache.c | 78 struct ll_xattr_entry **xattr) in ll_xattr_cache_find() argument 86 *xattr = entry; in ll_xattr_cache_find() 111 struct ll_xattr_entry *xattr; in ll_xattr_cache_add() local 113 if (ll_xattr_cache_find(cache, xattr_name, &xattr) == 0) { in ll_xattr_cache_add() 118 xattr = kmem_cache_alloc(xattr_kmem, GFP_NOFS | __GFP_ZERO); in ll_xattr_cache_add() 119 if (xattr == NULL) { in ll_xattr_cache_add() 124 xattr->xe_name = kstrdup(xattr_name, GFP_NOFS); in ll_xattr_cache_add() 125 if (!xattr->xe_name) { in ll_xattr_cache_add() 127 xattr->xe_namelen); in ll_xattr_cache_add() 130 xattr->xe_value = kmemdup(xattr_val, xattr_val_len, GFP_NOFS); in ll_xattr_cache_add() [all …]
|
D | Makefile | 5 xattr.o xattr_cache.o remote_perm.o llite_rmtacl.o \
|
/linux-4.4.14/fs/ceph/ |
D | xattr.c | 17 struct ceph_inode_xattr *xattr); 346 struct ceph_inode_xattr *xattr = NULL; in __set_xattr() local 353 xattr = rb_entry(parent, struct ceph_inode_xattr, node); in __set_xattr() 354 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr() 360 if (name_len == xattr->name_len) in __set_xattr() 362 else if (name_len < xattr->name_len) in __set_xattr() 367 xattr = NULL; in __set_xattr() 372 if (xattr && (flags & XATTR_CREATE)) in __set_xattr() 374 else if (!xattr && (flags & XATTR_REPLACE)) in __set_xattr() 382 if (xattr) in __set_xattr() [all …]
|
D | Makefile | 8 export.o caps.o snap.o xattr.o \
|
/linux-4.4.14/fs/hfsplus/ |
D | xattr_security.c | 35 const struct xattr *xattr_array, in hfsplus_initxattrs() 38 const struct xattr *xattr; in hfsplus_initxattrs() local 46 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in hfsplus_initxattrs() 48 if (!strcmp(xattr->name, "")) in hfsplus_initxattrs() 53 XATTR_SECURITY_PREFIX_LEN, xattr->name); in hfsplus_initxattrs() 55 XATTR_SECURITY_PREFIX_LEN + strlen(xattr->name), 0, 1); in hfsplus_initxattrs() 58 xattr->value, xattr->value_len, 0); in hfsplus_initxattrs()
|
D | Makefile | 9 attributes.o xattr.o xattr_user.o xattr_security.o xattr_trusted.o
|
/linux-4.4.14/fs/jffs2/ |
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()
|
D | Makefile | 14 jffs2-$(CONFIG_JFFS2_FS_XATTR) += xattr.o xattr_trusted.o xattr_user.o
|
D | README.Locking | 155 xattr related objects which include stuff in superblock and ic->xref. 158 creating or deleting any xattr related object.
|
D | gc.c | 132 int xattr = 0; in jffs2_garbage_collect_pass() local 146 if (c->checked_ino > c->highest_ino && xattr) { in jffs2_garbage_collect_pass() 157 if (!xattr) in jffs2_garbage_collect_pass() 158 xattr = jffs2_verify_xattr(c); in jffs2_garbage_collect_pass()
|
/linux-4.4.14/fs/ext2/ |
D | xattr_security.c | 48 static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext2_initxattrs() 51 const struct xattr *xattr; in ext2_initxattrs() local 54 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext2_initxattrs() 56 xattr->name, xattr->value, in ext2_initxattrs() 57 xattr->value_len, 0); in ext2_initxattrs()
|
D | Makefile | 10 ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
|
/linux-4.4.14/fs/ext4/ |
D | xattr_security.c | 54 ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext4_initxattrs() 57 const struct xattr *xattr; in ext4_initxattrs() local 61 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext4_initxattrs() 64 xattr->name, xattr->value, in ext4_initxattrs() 65 xattr->value_len, 0); in ext4_initxattrs()
|
D | Makefile | 10 mmp.o indirect.o extents_status.o xattr.o xattr_user.o \
|
D | ext4.h | 1720 EXT4_FEATURE_COMPAT_FUNCS(xattr, EXT_ATTR) in EXT4_FEATURE_COMPAT_FUNCS()
|
/linux-4.4.14/fs/jfs/ |
D | xattr.c | 77 struct jfs_ea_list *xattr; /* buffer containing ea list */ member 460 ea_buf->xattr = NULL; in ea_get() 467 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get() 479 ea_buf->xattr = (struct jfs_ea_list *) ji->i_inline_ea; in ea_get() 498 ea_buf->xattr = kmalloc(size, GFP_KERNEL); in ea_get() 499 if (ea_buf->xattr == NULL) in ea_get() 509 if ((rc = ea_read(inode, ea_buf->xattr))) { in ea_get() 510 kfree(ea_buf->xattr); in ea_get() 511 ea_buf->xattr = NULL; in ea_get() 547 ea_buf->xattr = ea_buf->mp->data; in ea_get() [all …]
|
D | Makefile | 12 resize.o xattr.o ioctl.o
|
/linux-4.4.14/security/integrity/evm/ |
D | evm_posix_acl.c | 16 int posix_xattr_acl(const char *xattr) in posix_xattr_acl() argument 18 int xattr_len = strlen(xattr); in posix_xattr_acl() 21 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) in posix_xattr_acl() 24 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) in posix_xattr_acl()
|
D | evm_main.c | 77 char **xattr; in evm_find_protected_xattrs() local 84 for (xattr = evm_config_xattrnames; *xattr != NULL; xattr++) { in evm_find_protected_xattrs() 85 error = inode->i_op->getxattr(dentry, *xattr, NULL, 0); in evm_find_protected_xattrs() 448 const struct xattr *lsm_xattr, in evm_inode_init_security() 449 struct xattr *evm_xattr) in evm_inode_init_security()
|
D | evm.h | 49 int evm_init_hmac(struct inode *inode, const struct xattr *xattr,
|
D | evm_crypto.c | 219 int evm_init_hmac(struct inode *inode, const struct xattr *lsm_xattr, in evm_init_hmac()
|
/linux-4.4.14/drivers/staging/most/hdm-dim2/ |
D | dim2_sysfs.c | 55 struct bus_attr *xattr = container_of(attr, struct bus_attr, attr); in bus_kobj_attr_show() local 57 if (!xattr->show) in bus_kobj_attr_show() 60 return xattr->show(bus, buf); in bus_kobj_attr_show() 69 struct bus_attr *xattr = container_of(attr, struct bus_attr, attr); in bus_kobj_attr_store() local 71 if (!xattr->store) in bus_kobj_attr_store() 74 ret = xattr->store(bus, buf, count); in bus_kobj_attr_store()
|
/linux-4.4.14/fs/ |
D | xattr.c | 845 struct simple_xattr *xattr; in simple_xattr_get() local 849 list_for_each_entry(xattr, &xattrs->head, list) { in simple_xattr_get() 850 if (strcmp(name, xattr->name)) in simple_xattr_get() 853 ret = xattr->size; in simple_xattr_get() 855 if (size < xattr->size) in simple_xattr_get() 858 memcpy(buffer, xattr->value, xattr->size); in simple_xattr_get() 869 struct simple_xattr *xattr; in __simple_xattr_set() local 887 list_for_each_entry(xattr, &xattrs->head, list) { in __simple_xattr_set() 888 if (!strcmp(name, xattr->name)) { in __simple_xattr_set() 890 xattr = new_xattr; in __simple_xattr_set() [all …]
|
D | Makefile | 12 seq_file.o xattr.o libfs.o fs-writeback.o \
|
/linux-4.4.14/include/linux/ |
D | evm.h | 34 const struct xattr *xattr_array, 35 struct xattr *evm); 93 const struct xattr *xattr_array, in evm_inode_init_security() 94 struct xattr *evm) in evm_inode_init_security()
|
D | xattr.h | 37 struct xattr { struct 85 struct simple_xattr *xattr, *node; in simple_xattrs_free() local 87 list_for_each_entry_safe(xattr, node, &xattrs->head, list) { in simple_xattrs_free() 88 kfree(xattr->name); in simple_xattrs_free() 89 kfree(xattr); in simple_xattrs_free()
|
D | security.h | 53 struct xattr; 151 const struct xattr *xattr_array, void *fs_data);
|
/linux-4.4.14/fs/squashfs/ |
D | xattr.c | 45 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_listxattr() 47 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr); in squashfs_listxattr() 122 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_xattr_get() 124 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr); in squashfs_xattr_get() 162 u64 xattr; in squashfs_xattr_get() local 172 xattr = le64_to_cpu(xattr_val); in squashfs_xattr_get() 173 start = SQUASHFS_XATTR_BLK(xattr) + in squashfs_xattr_get() 175 offset = SQUASHFS_XATTR_OFFSET(xattr); in squashfs_xattr_get()
|
D | xattr_id.c | 42 int *count, unsigned int *size, unsigned long long *xattr) in squashfs_xattr_lookup() argument 56 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup()
|
D | inode.c | 209 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode() 263 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode() 300 __le32 xattr; in squashfs_read_inode() local 306 err = squashfs_read_metadata(sb, &xattr, &block, in squashfs_read_inode() 307 &offset, sizeof(xattr)); in squashfs_read_inode() 310 xattr_id = le32_to_cpu(xattr); in squashfs_read_inode() 354 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode() 394 xattr_id = le32_to_cpu(sqsh_ino->xattr); in squashfs_read_inode() 409 &squashfs_i(inode)->xattr); in squashfs_read_inode()
|
D | squashfs_fs.h | 301 __le32 xattr; member 324 __le32 xattr; member 366 __le32 xattr; member 397 __le32 xattr; member 446 __le64 xattr; member
|
D | squashfs_fs_i.h | 29 u64 xattr; member
|
D | xattr.h | 40 unsigned long long *xattr) in squashfs_xattr_lookup() argument
|
D | Makefile | 13 squashfs-$(CONFIG_SQUASHFS_XATTR) += xattr.o xattr_id.o
|
/linux-4.4.14/fs/btrfs/ |
D | xattr.c | 488 const struct xattr *xattr_array, void *fs_info) in btrfs_initxattrs() 490 const struct xattr *xattr; in btrfs_initxattrs() local 495 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in btrfs_initxattrs() 497 strlen(xattr->name) + 1, GFP_NOFS); in btrfs_initxattrs() 503 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in btrfs_initxattrs() 505 xattr->value, xattr->value_len, 0); in btrfs_initxattrs()
|
D | Makefile | 7 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
|
/linux-4.4.14/fs/ubifs/ |
D | xattr.c | 145 ui->xattr = 1; in create_xattr() 299 if (ubifs_inode(inode)->xattr) in iget_xattr() 591 static int init_xattrs(struct inode *inode, const struct xattr *xattr_array, in init_xattrs() 594 const struct xattr *xattr; in init_xattrs() local 598 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in init_xattrs() 600 strlen(xattr->name) + 1, GFP_NOFS); in init_xattrs() 606 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in init_xattrs() 607 err = setxattr(inode, name, xattr->value, xattr->value_len, 0); in init_xattrs()
|
D | Makefile | 6 ubifs-y += recovery.o ioctl.o lpt_commit.o tnc_misc.o xattr.o debug.o
|
D | super.c | 89 if (ui->xattr && !S_ISREG(inode->i_mode)) in validate_inode() 156 ui->xattr = (ui->flags & UBIFS_XATTR_FL) ? 1 : 0; in ubifs_iget() 167 if (ui->xattr) { in ubifs_iget() 300 ubifs_assert(!ui->xattr); in ubifs_write_inode() 344 if (ui->xattr) in ubifs_evict_inode()
|
D | ubifs.h | 413 unsigned int xattr:1; member
|
D | debug.c | 262 pr_err("\txattr %u\n", ui->xattr); in ubifs_dump_inode() 263 pr_err("\tbulk_read %u\n", ui->xattr); in ubifs_dump_inode()
|
/linux-4.4.14/fs/f2fs/ |
D | xattr.c | 159 static int f2fs_initxattrs(struct inode *inode, const struct xattr *xattr_array, in f2fs_initxattrs() 162 const struct xattr *xattr; in f2fs_initxattrs() local 165 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in f2fs_initxattrs() 167 xattr->name, xattr->value, in f2fs_initxattrs() 168 xattr->value_len, (struct page *)page, 0); in f2fs_initxattrs()
|
D | Makefile | 7 f2fs-$(CONFIG_F2FS_FS_XATTR) += xattr.o
|
/linux-4.4.14/security/integrity/ima/ |
D | ima_appraise.c | 56 iint->ima_hash->xattr.sha1.type = IMA_XATTR_DIGEST; in ima_fix_xattr() 59 iint->ima_hash->xattr.ng.type = IMA_XATTR_DIGEST_NG; in ima_fix_xattr() 60 iint->ima_hash->xattr.ng.algo = algo; in ima_fix_xattr() 63 &iint->ima_hash->xattr.data[offset], in ima_fix_xattr() 64 (sizeof(iint->ima_hash->xattr) - offset) + in ima_fix_xattr()
|
/linux-4.4.14/Documentation/filesystems/ |
D | squashfs.txt | 90 | xattr | 97 xattr tables are written. 214 The xattr table contains extended attributes for each inode. The xattrs 216 name and value field. The type field encodes the xattr prefix 219 is stored inline (in which case the value field contains the xattr value), 226 The xattr lists are packed into compressed 8K metadata blocks. 228 location of the xattr list inside each inode, a 32-bit xattr id 229 is stored. This xattr id is mapped into the location of the xattr 230 list using a second xattr id lookup table.
|
D | overlayfs.txt | 98 A directory is made opaque by setting the xattr "trusted.overlay.opaque"
|
D | f2fs.txt | 116 nouser_xattr Disable Extended User Attributes. Note: xattr is enabled
|
/linux-4.4.14/fs/nfs/ |
D | nfs.h | 20 const struct xattr_handler **xattr; /* NFS xattr handlers */ member
|
D | nfs3super.c | 17 .xattr = nfs3_xattr_handlers,
|
D | nfs4super.c | 72 .xattr = nfs4_xattr_handlers,
|
D | super.c | 2313 sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr; in nfs_fill_super()
|
/linux-4.4.14/fs/cachefiles/ |
D | Makefile | 14 xattr.o
|
/linux-4.4.14/fs/9p/ |
D | Makefile | 13 xattr.o
|
/linux-4.4.14/fs/xfs/ |
D | xfs_iops.c | 64 const struct xattr *xattr_array, in xfs_initxattrs() 67 const struct xattr *xattr; in xfs_initxattrs() local 71 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in xfs_initxattrs() 72 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs() 73 xattr->value_len, ATTR_SECURE); in xfs_initxattrs()
|
/linux-4.4.14/fs/gfs2/ |
D | Makefile | 3 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
D | inode.c | 555 static int gfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in gfs2_initxattrs() 558 const struct xattr *xattr; in gfs2_initxattrs() local 561 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in gfs2_initxattrs() 562 err = __gfs2_xattr_set(inode, xattr->name, xattr->value, in gfs2_initxattrs() 563 xattr->value_len, 0, in gfs2_initxattrs()
|
/linux-4.4.14/fs/cifs/ |
D | Makefile | 8 cifs_unicode.o nterr.o xattr.o cifsencrypt.o \
|
/linux-4.4.14/fs/reiserfs/ |
D | Makefile | 10 item_ops.o ioctl.o xattr.o lock.o
|
/linux-4.4.14/fs/ocfs2/ |
D | Makefile | 43 xattr.o \
|
D | xattr.c | 7265 static int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ocfs2_initxattrs() 7268 const struct xattr *xattr; in ocfs2_initxattrs() local 7271 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ocfs2_initxattrs() 7273 xattr->name, xattr->value, in ocfs2_initxattrs() 7274 xattr->value_len, XATTR_CREATE); in ocfs2_initxattrs()
|
/linux-4.4.14/net/ceph/ |
D | osd_client.c | 300 ceph_osd_data_release(&op->xattr.osd_data); in osd_req_op_data_release() 579 op->xattr.name_len = payload_len; in osd_req_op_xattr_init() 582 op->xattr.value_len = size; in osd_req_op_xattr_init() 586 op->xattr.cmp_op = cmp_op; in osd_req_op_xattr_init() 587 op->xattr.cmp_mode = cmp_mode; in osd_req_op_xattr_init() 589 ceph_osd_data_pagelist_init(&op->xattr.osd_data, pagelist); in osd_req_op_xattr_init() 732 dst->xattr.name_len = cpu_to_le32(src->xattr.name_len); in osd_req_encode_op() 733 dst->xattr.value_len = cpu_to_le32(src->xattr.value_len); in osd_req_encode_op() 734 dst->xattr.cmp_op = src->xattr.cmp_op; in osd_req_encode_op() 735 dst->xattr.cmp_mode = src->xattr.cmp_mode; in osd_req_encode_op() [all …]
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | evm | 15 can not create or validate the 'security.evm' xattr, but
|
/linux-4.4.14/security/integrity/ |
D | integrity.h | 87 } xattr; member
|
/linux-4.4.14/security/ |
D | security.c | 370 struct xattr new_xattrs[MAX_LSM_EVM_XATTR + 1]; in security_inode_init_security() 371 struct xattr *lsm_xattr, *evm_xattr, *xattr; in security_inode_init_security() local 395 for (xattr = new_xattrs; xattr->value != NULL; xattr++) in security_inode_init_security() 396 kfree(xattr->value); in security_inode_init_security()
|
/linux-4.4.14/mm/ |
D | shmem.c | 1485 static int shmem_initxattrs(struct inode *, const struct xattr *, void *); 2524 const struct xattr *xattr_array, in shmem_initxattrs() 2528 const struct xattr *xattr; in shmem_initxattrs() local 2532 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in shmem_initxattrs() 2533 new_xattr = simple_xattr_alloc(xattr->value, xattr->value_len); in shmem_initxattrs() 2537 len = strlen(xattr->name) + 1; in shmem_initxattrs() 2548 xattr->name, len); in shmem_initxattrs()
|
/linux-4.4.14/include/linux/ceph/ |
D | osd_client.h | 95 } xattr; member
|
D | rados.h | 438 } __attribute__ ((packed)) xattr; member
|
/linux-4.4.14/Documentation/filesystems/cifs/ |
D | TODO | 60 n) DOS attrs - returned as pseudo-xattr in Samba format (check VFAT and NTFS for this too)
|
D | CHANGES | 3 Add sockopt=TCP_NODELAY mount option. EA (xattr) routines hardened 412 Allow new nouser_xattr mount parm to disable xattr support for user namespace. 477 xattr names in the "user." namespace space to SMB/CIFS EAs. Lots of
|
D | README | 151 shares on NTFS filesystems). Extended Attribute (xattr) support is an optional 153 make menuconfig. Client support for extended attributes (user xattr) can be
|
/linux-4.4.14/Documentation/filesystems/pohmelfs/ |
D | network_protocol.txt | 224 @id - attribute generation number or xattr setting type
|
/linux-4.4.14/include/uapi/linux/ |
D | Kbuild | 458 header-y += xattr.h
|
/linux-4.4.14/Documentation/filesystems/caching/ |
D | netfs-api.txt | 410 xattr->cache = 413 xattr, true);
|
/linux-4.4.14/Documentation/kbuild/ |
D | modules.txt | 534 ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o
|
D | makefiles.txt | 214 ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o \ 217 In this example, xattr.o, xattr_user.o and xattr_trusted.o are only
|
/linux-4.4.14/Documentation/security/ |
D | Smack.txt | 24 although xattr support is not strictly required.
|