Searched refs:xattr (Results 1 - 25 of 167) sorted by relevance

1234567

/linux-master/security/integrity/evm/
H A Devm_posix_acl.c9 #include <linux/xattr.h>
12 int posix_xattr_acl(const char *xattr) argument
14 int xattr_len = strlen(xattr);
17 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0))
20 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0))
H A Devm_secfs.c133 struct xattr_list *xattr; local
142 list_for_each_entry(xattr, &evm_config_xattrnames, list) {
143 if (!xattr->enabled)
146 size += strlen(xattr->name) + 1;
155 list_for_each_entry(xattr, &evm_config_xattrnames, list) {
156 if (!xattr->enabled)
159 sprintf(temp + offset, "%s\n", xattr->name);
160 offset += strlen(xattr->name) + 1;
184 struct xattr_list *xattr, *tmp; local
203 xattr
[all...]
H A Devm_crypto.c17 #include <linux/xattr.h>
136 /* Protect against 'cutting & pasting' security.evm xattr, include inode
183 * Dump large security xattr values as a continuous ascii hexademical string.
216 * Instead of retrieving the requested xattr, for performance, calculate
217 * the hmac using the requested xattr value. Don't alloc/free memory for
218 * each xattr, but attempt to re-use the previously allocated memory.
227 struct xattr_list *xattr; local
246 list_for_each_entry_lockless(xattr, &evm_config_xattrnames, list) {
249 if (strcmp(xattr->name, XATTR_NAME_IMA) == 0)
256 if (type != EVM_XATTR_PORTABLE_DIGSIG && !xattr
392 const struct xattr *xattr; local
[all...]
H A Devm_main.c18 #include <linux/xattr.h>
134 struct xattr_list *xattr; local
141 list_for_each_entry_lockless(xattr, &evm_config_xattrnames, list) {
142 error = __vfs_getxattr(dentry, inode, xattr->name, NULL, 0);
166 * evm_verify_hmac - calculate and compare the HMAC with the EVM xattr
169 * and compare it against the stored security.evm xattr.
172 * - use the previoulsy retrieved xattr value and length to calculate the
241 /* accept xattr with non-empty signature field */
297 struct xattr_list *xattr; local
300 list_for_each_entry_lockless(xattr,
347 struct xattr_list *xattr; local
964 struct xattr *xattr, *evm_xattr; local
[all...]
/linux-master/fs/hfsplus/
H A Dxattr_security.c14 #include "xattr.h"
37 const struct xattr *xattr_array,
40 const struct xattr *xattr; local
48 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
50 if (!strcmp(xattr->name, ""))
55 XATTR_SECURITY_PREFIX_LEN, xattr->name);
57 XATTR_SECURITY_PREFIX_LEN + strlen(xattr
[all...]
H A DMakefile10 attributes.o xattr.o xattr_user.o xattr_security.o xattr_trusted.o
/linux-master/fs/jffs2/
H A Dsecurity.c20 #include <linux/xattr.h>
27 const struct xattr *xattr_array, void *fs_info)
29 const struct xattr *xattr; local
32 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
34 xattr->name, xattr->value,
35 xattr
[all...]
/linux-master/fs/ext4/
H A Dxattr_security.c13 #include "xattr.h"
36 ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array,
39 const struct xattr *xattr; local
43 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
46 xattr->name, xattr->value,
47 xattr
[all...]
/linux-master/fs/ext2/
H A Dxattr_security.c9 #include "xattr.h"
31 static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
34 const struct xattr *xattr; local
37 for (xattr = xattr_array; xattr->name != NULL; xattr++) {
39 xattr->name, xattr->value,
40 xattr
[all...]
H A DMakefile14 ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
/linux-master/include/linux/
H A Dpseudo_fs.h8 const struct xattr_handler * const *xattr; member in struct:pseudo_fs_context
H A Devm.h13 #include <linux/xattr.h>
22 const struct qstr *qstr, struct xattr *xattrs,
56 struct xattr *xattrs,
H A Dlsm_hooks.h32 #include <linux/xattr.h>
80 int lbs_xattr_count; /* number of xattr slots in new_xattrs array */
88 * Retrieve the first available slot in the @xattrs array to fill with an xattr,
93 static inline struct xattr *lsm_get_xattr_slot(struct xattr *xattrs,
/linux-master/fs/bcachefs/
H A Dxattr.c11 #include "xattr.h"
15 #include <linux/xattr.h>
77 struct bkey_s_c_xattr xattr = bkey_s_c_to_xattr(k); local
78 unsigned val_u64s = xattr_val_u64s(xattr.v->x_name_len,
79 le16_to_cpu(xattr.v->x_val_len));
88 val_u64s = xattr_val_u64s(xattr.v->x_name_len,
89 le16_to_cpu(xattr.v->x_val_len) + 4);
96 bkey_fsck_err_on(!bch2_xattr_type_to_handler(xattr.v->x_type), c, err,
98 "invalid type (%u)", xattr.v->x_type);
100 bkey_fsck_err_on(memchr(xattr
111 struct bkey_s_c_xattr xattr = bkey_s_c_to_xattr(k); local
141 struct bkey_s_c_xattr xattr; local
193 struct bkey_i_xattr *xattr; local
258 bch2_xattr_emit(struct dentry *dentry, const struct bch_xattr *xattr, struct xattr_buf *buf) argument
[all...]
H A Dacl.c6 #include "xattr.h"
200 struct bkey_i_xattr *xattr; local
229 xattr = bch2_trans_kmalloc(trans, u64s * sizeof(u64));
230 if (IS_ERR(xattr))
231 return xattr;
233 bkey_xattr_init(&xattr->k_i);
234 xattr->k.u64s = u64s;
235 xattr->v.x_type = acl_to_xattr_type(type);
236 xattr->v.x_name_len = 0;
237 xattr
300 struct bkey_s_c_xattr xattr = bkey_s_c_to_xattr(k); local
331 struct bkey_i_xattr *xattr = local
417 struct bkey_s_c_xattr xattr; local
[all...]
/linux-master/fs/squashfs/
H A Dsquashfs_fs_i.h16 u64 xattr; member in struct:squashfs_inode_info
H A Dxattr.c8 * xattr.c
16 #include <linux/xattr.h>
32 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr)
34 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr);
43 /* loop reading each xattr name */
87 /* skip remaining xattr entry */
110 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr)
112 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr);
121 /* loop reading each xattr name */
147 /* found xattr */
150 u64 xattr; local
[all...]
H A Dxattr.h8 * xattr.h
35 unsigned long long *xattr)
33 squashfs_xattr_lookup(struct super_block *sb, unsigned int index, int *count, unsigned int *size, unsigned long long *xattr) argument
/linux-master/fs/ceph/
H A Dxattr.c10 #include <linux/xattr.h>
19 struct ceph_inode_xattr *xattr);
578 struct ceph_inode_xattr *xattr = NULL; local
585 xattr = rb_entry(parent, struct ceph_inode_xattr, node);
586 c = strncmp(name, xattr->name, min(name_len, xattr->name_len));
592 if (name_len == xattr->name_len)
594 else if (name_len < xattr->name_len)
599 xattr = NULL;
605 if (xattr
677 struct ceph_inode_xattr *xattr = NULL; local
706 __free_xattr(struct ceph_inode_xattr *xattr) argument
718 __remove_xattr(struct ceph_inode_info *ci, struct ceph_inode_xattr *xattr) argument
744 struct ceph_inode_xattr *xattr = NULL; local
768 struct ceph_inode_xattr *xattr = NULL; local
912 struct ceph_inode_xattr *xattr = NULL; local
976 struct ceph_inode_xattr *xattr; local
1193 struct ceph_inode_xattr *xattr = NULL; local
[all...]
/linux-master/fs/9p/
H A DMakefile14 xattr.o
/linux-master/fs/cachefiles/
H A DMakefile16 xattr.o
/linux-master/fs/nfs/
H A Dnfs.h21 const struct xattr_handler * const *xattr; /* NFS xattr handlers */ member in struct:nfs_subversion
/linux-master/fs/orangefs/
H A DMakefile8 orangefs-objs := acl.o file.o orangefs-cache.o orangefs-utils.o xattr.o \
/linux-master/fs/erofs/
H A DMakefile5 erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o
/linux-master/fs/jfs/
H A DMakefile13 resize.o xattr.o ioctl.o

Completed in 205 milliseconds

1234567