12 #include <linux/kernel.h>
13 #include <linux/slab.h>
15 #include <linux/time.h>
20 #include <linux/xattr.h>
26 static int jffs2_initxattrs(
struct inode *
inode,
32 for (xattr = xattr_array; xattr->
name !=
NULL; xattr++) {
47 &jffs2_initxattrs,
NULL);
61 static int jffs2_security_setxattr(
struct dentry *dentry,
const char *name,
62 const void *buffer,
size_t size,
int flags,
int type)
68 name, buffer, size, flags);
71 static size_t jffs2_security_listxattr(
struct dentry *dentry,
char *
list,
72 size_t list_size,
const char *name,
size_t name_len,
int type)
76 if (list && retlen <= list_size) {
86 .list = jffs2_security_listxattr,
87 .set = jffs2_security_setxattr,
88 .get = jffs2_security_getxattr