/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | xattr_cache.c | 79 struct ll_xattr_entry **xattr) in ll_xattr_cache_find() argument 89 *xattr = entry; in ll_xattr_cache_find() 114 struct ll_xattr_entry *xattr; in ll_xattr_cache_add() local 118 if (ll_xattr_cache_find(cache, xattr_name, &xattr) == 0) { in ll_xattr_cache_add() 123 OBD_SLAB_ALLOC_PTR_GFP(xattr, xattr_kmem, GFP_NOFS); in ll_xattr_cache_add() 124 if (xattr == NULL) { in ll_xattr_cache_add() 129 xattr->xe_name = kstrdup(xattr_name, GFP_NOFS); in ll_xattr_cache_add() 130 if (!xattr->xe_name) { in ll_xattr_cache_add() 132 xattr->xe_namelen); in ll_xattr_cache_add() 135 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 llite_capa.o \
|
/linux-4.1.27/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.1.27/fs/hfsplus/ |
D | xattr_security.c | 43 const struct xattr *xattr_array, in hfsplus_initxattrs() 46 const struct xattr *xattr; in hfsplus_initxattrs() local 54 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in hfsplus_initxattrs() 56 if (!strcmp(xattr->name, "")) in hfsplus_initxattrs() 61 XATTR_SECURITY_PREFIX_LEN, xattr->name); in hfsplus_initxattrs() 63 XATTR_SECURITY_PREFIX_LEN + strlen(xattr->name), 0, 1); in hfsplus_initxattrs() 66 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.1.27/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.1.27/fs/ext2/ |
D | xattr_security.c | 45 static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext2_initxattrs() 48 const struct xattr *xattr; in ext2_initxattrs() local 51 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext2_initxattrs() 53 xattr->name, xattr->value, in ext2_initxattrs() 54 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.1.27/fs/ext3/ |
D | xattr_security.c | 47 const struct xattr *xattr_array, in ext3_initxattrs() 50 const struct xattr *xattr; in ext3_initxattrs() local 54 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext3_initxattrs() 57 xattr->name, xattr->value, in ext3_initxattrs() 58 xattr->value_len, 0); in ext3_initxattrs()
|
D | Makefile | 10 ext3-$(CONFIG_EXT3_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
|
/linux-4.1.27/fs/ext4/ |
D | xattr_security.c | 51 ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ext4_initxattrs() 54 const struct xattr *xattr; in ext4_initxattrs() local 58 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ext4_initxattrs() 61 xattr->name, xattr->value, in ext4_initxattrs() 62 xattr->value_len, 0); in ext4_initxattrs()
|
D | Makefile | 10 mmp.o indirect.o extents_status.o xattr.o xattr_user.o \
|
/linux-4.1.27/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.1.27/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() 449 const struct xattr *lsm_xattr, in evm_inode_init_security() 450 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.1.27/fs/ |
D | xattr.c | 822 struct simple_xattr *xattr; in simple_xattr_get() local 826 list_for_each_entry(xattr, &xattrs->head, list) { in simple_xattr_get() 827 if (strcmp(name, xattr->name)) in simple_xattr_get() 830 ret = xattr->size; in simple_xattr_get() 832 if (size < xattr->size) in simple_xattr_get() 835 memcpy(buffer, xattr->value, xattr->size); in simple_xattr_get() 846 struct simple_xattr *xattr; in __simple_xattr_set() local 864 list_for_each_entry(xattr, &xattrs->head, list) { in __simple_xattr_set() 865 if (!strcmp(name, xattr->name)) { in __simple_xattr_set() 867 xattr = new_xattr; in __simple_xattr_set() [all …]
|
D | Makefile | 12 seq_file.o xattr.o libfs.o fs-writeback.o \
|
/linux-4.1.27/include/linux/ |
D | xattr.h | 33 struct xattr { struct 81 struct simple_xattr *xattr, *node; in simple_xattrs_free() local 83 list_for_each_entry_safe(xattr, node, &xattrs->head, list) { in simple_xattrs_free() 84 kfree(xattr->name); in simple_xattrs_free() 85 kfree(xattr); in simple_xattrs_free()
|
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 | security.h | 53 struct xattr; 161 const struct xattr *xattr_array, void *fs_data);
|
/linux-4.1.27/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.1.27/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.1.27/fs/ubifs/ |
D | xattr.c | 145 ui->xattr = 1; in create_xattr() 295 if (ubifs_inode(inode)->xattr) in iget_xattr() 625 static int init_xattrs(struct inode *inode, const struct xattr *xattr_array, in init_xattrs() 628 const struct xattr *xattr; in init_xattrs() local 632 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in init_xattrs() 634 strlen(xattr->name) + 1, GFP_NOFS); in init_xattrs() 640 strcpy(name + XATTR_SECURITY_PREFIX_LEN, xattr->name); in init_xattrs() 641 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() 153 ui->xattr = (ui->flags & UBIFS_XATTR_FL) ? 1 : 0; in ubifs_iget() 164 if (ui->xattr) { in ubifs_iget() 296 ubifs_assert(!ui->xattr); in ubifs_write_inode() 340 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.1.27/fs/f2fs/ |
D | xattr.c | 161 static int f2fs_initxattrs(struct inode *inode, const struct xattr *xattr_array, in f2fs_initxattrs() 164 const struct xattr *xattr; in f2fs_initxattrs() local 167 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in f2fs_initxattrs() 169 xattr->name, xattr->value, in f2fs_initxattrs() 170 xattr->value_len, (struct page *)page, 0); in f2fs_initxattrs()
|
D | Makefile | 6 f2fs-$(CONFIG_F2FS_FS_XATTR) += xattr.o
|
/linux-4.1.27/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.1.27/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 | 97 A directory is made opaque by setting the xattr "trusted.overlay.opaque"
|
D | f2fs.txt | 115 nouser_xattr Disable Extended User Attributes. Note: xattr is enabled
|
/linux-4.1.27/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 | 2310 sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr; in nfs_fill_super()
|
/linux-4.1.27/fs/cachefiles/ |
D | Makefile | 14 xattr.o
|
/linux-4.1.27/fs/xfs/ |
D | xfs_iops.c | 65 const struct xattr *xattr_array, in xfs_initxattrs() 68 const struct xattr *xattr; in xfs_initxattrs() local 72 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in xfs_initxattrs() 73 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs() 74 xattr->value_len, ATTR_SECURE); in xfs_initxattrs()
|
/linux-4.1.27/fs/9p/ |
D | Makefile | 13 xattr.o \
|
/linux-4.1.27/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.1.27/fs/cifs/ |
D | Makefile | 8 cifs_unicode.o nterr.o xattr.o cifsencrypt.o \
|
/linux-4.1.27/fs/reiserfs/ |
D | Makefile | 10 item_ops.o ioctl.o xattr.o lock.o
|
/linux-4.1.27/fs/ocfs2/ |
D | Makefile | 43 xattr.o \
|
D | xattr.c | 7270 int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, in ocfs2_initxattrs() 7273 const struct xattr *xattr; in ocfs2_initxattrs() local 7276 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in ocfs2_initxattrs() 7278 xattr->name, xattr->value, in ocfs2_initxattrs() 7279 xattr->value_len, XATTR_CREATE); in ocfs2_initxattrs()
|
/linux-4.1.27/net/ceph/ |
D | osd_client.c | 297 ceph_osd_data_release(&op->xattr.osd_data); in osd_req_op_data_release() 568 op->xattr.name_len = payload_len; in osd_req_op_xattr_init() 571 op->xattr.value_len = size; in osd_req_op_xattr_init() 575 op->xattr.cmp_op = cmp_op; in osd_req_op_xattr_init() 576 op->xattr.cmp_mode = cmp_mode; in osd_req_op_xattr_init() 578 ceph_osd_data_pagelist_init(&op->xattr.osd_data, pagelist); in osd_req_op_xattr_init() 716 dst->xattr.name_len = cpu_to_le32(src->xattr.name_len); in osd_req_encode_op() 717 dst->xattr.value_len = cpu_to_le32(src->xattr.value_len); in osd_req_encode_op() 718 dst->xattr.cmp_op = src->xattr.cmp_op; in osd_req_encode_op() 719 dst->xattr.cmp_mode = src->xattr.cmp_mode; in osd_req_encode_op() [all …]
|
/linux-4.1.27/security/ |
D | security.c | 367 struct xattr new_xattrs[MAX_LSM_EVM_XATTR + 1]; in security_inode_init_security() 368 struct xattr *lsm_xattr, *evm_xattr, *xattr; in security_inode_init_security() local 392 for (xattr = new_xattrs; xattr->value != NULL; xattr++) in security_inode_init_security() 393 kfree(xattr->value); in security_inode_init_security()
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | evm | 15 can not create or validate the 'security.evm' xattr, but
|
/linux-4.1.27/security/integrity/ |
D | integrity.h | 87 } xattr; member
|
/linux-4.1.27/mm/ |
D | shmem.c | 1469 static int shmem_initxattrs(struct inode *, const struct xattr *, void *); 2515 const struct xattr *xattr_array, in shmem_initxattrs() 2519 const struct xattr *xattr; in shmem_initxattrs() local 2523 for (xattr = xattr_array; xattr->name != NULL; xattr++) { in shmem_initxattrs() 2524 new_xattr = simple_xattr_alloc(xattr->value, xattr->value_len); in shmem_initxattrs() 2528 len = strlen(xattr->name) + 1; in shmem_initxattrs() 2539 xattr->name, len); in shmem_initxattrs()
|
/linux-4.1.27/include/linux/ceph/ |
D | osd_client.h | 95 } xattr; member
|
D | rados.h | 438 } __attribute__ ((packed)) xattr; member
|
/linux-4.1.27/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.1.27/Documentation/filesystems/pohmelfs/ |
D | network_protocol.txt | 224 @id - attribute generation number or xattr setting type
|
/linux-4.1.27/include/uapi/linux/ |
D | Kbuild | 449 header-y += xattr.h
|
/linux-4.1.27/Documentation/filesystems/caching/ |
D | netfs-api.txt | 410 xattr->cache = 413 xattr, true);
|
/linux-4.1.27/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.1.27/Documentation/security/ |
D | Smack.txt | 24 although xattr support is not strictly required.
|