8 #include <linux/string.h>
9 #include <linux/capability.h>
20 const size_t total_len = prefix_len + name_len + 1;
25 if (list && total_len <= list_size) {
27 memcpy(list+prefix_len, name, name_len);
34 ext4_xattr_trusted_get(
struct dentry *dentry,
const char *name,
void *
buffer,
35 size_t size,
int type)
44 ext4_xattr_trusted_set(
struct dentry *dentry,
const char *name,
45 const void *
value,
size_t size,
int flags,
int type)
50 name, value, size, flags);
55 .list = ext4_xattr_trusted_list,
56 .get = ext4_xattr_trusted_get,
57 .set = ext4_xattr_trusted_set,