aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/security.c')
-rw-r--r--fs/jffs2/security.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/jffs2/security.c b/fs/jffs2/security.c
index d4b43fb7adb1..bf12fe5f83d7 100644
--- a/fs/jffs2/security.c
+++ b/fs/jffs2/security.c
@@ -48,8 +48,9 @@ int jffs2_init_security(struct inode *inode, struct inode *dir,
48} 48}
49 49
50/* ---- XATTR Handler for "security.*" ----------------- */ 50/* ---- XATTR Handler for "security.*" ----------------- */
51static int jffs2_security_getxattr(struct dentry *dentry, const char *name, 51static int jffs2_security_getxattr(const struct xattr_handler *handler,
52 void *buffer, size_t size, int type) 52 struct dentry *dentry, const char *name,
53 void *buffer, size_t size)
53{ 54{
54 if (!strcmp(name, "")) 55 if (!strcmp(name, ""))
55 return -EINVAL; 56 return -EINVAL;
@@ -58,8 +59,9 @@ static int jffs2_security_getxattr(struct dentry *dentry, const char *name,
58 name, buffer, size); 59 name, buffer, size);
59} 60}
60 61
61static int jffs2_security_setxattr(struct dentry *dentry, const char *name, 62static int jffs2_security_setxattr(const struct xattr_handler *handler,
62 const void *buffer, size_t size, int flags, int type) 63 struct dentry *dentry, const char *name,
64 const void *buffer, size_t size, int flags)
63{ 65{
64 if (!strcmp(name, "")) 66 if (!strcmp(name, ""))
65 return -EINVAL; 67 return -EINVAL;
@@ -68,8 +70,10 @@ static int jffs2_security_setxattr(struct dentry *dentry, const char *name,
68 name, buffer, size, flags); 70 name, buffer, size, flags);
69} 71}
70 72
71static size_t jffs2_security_listxattr(struct dentry *dentry, char *list, 73static size_t jffs2_security_listxattr(const struct xattr_handler *handler,
72 size_t list_size, const char *name, size_t name_len, int type) 74 struct dentry *dentry, char *list,
75 size_t list_size, const char *name,
76 size_t name_len)
73{ 77{
74 size_t retlen = XATTR_SECURITY_PREFIX_LEN + name_len + 1; 78 size_t retlen = XATTR_SECURITY_PREFIX_LEN + name_len + 1;
75 79