6 #include <linux/string.h>
9 #include <linux/slab.h>
15 ext4_xattr_security_list(
struct dentry *
dentry,
char *
list,
size_t list_size,
19 const size_t total_len = prefix_len + name_len + 1;
22 if (list && total_len <= list_size) {
24 memcpy(list+prefix_len, name, name_len);
31 ext4_xattr_security_get(
struct dentry *dentry,
const char *name,
41 ext4_xattr_security_set(
struct dentry *dentry,
const char *name,
42 const void *
value,
size_t size,
int flags,
int type)
47 name, value, size, flags);
58 for (xattr = xattr_array; xattr->
name !=
NULL; xattr++) {
74 &ext4_initxattrs, handle);
79 .list = ext4_xattr_security_list,
80 .get = ext4_xattr_security_get,
81 .set = ext4_xattr_security_set,