diff options
Diffstat (limited to 'fs/ext4/xattr_security.c')
-rw-r--r-- | fs/ext4/xattr_security.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/ext4/xattr_security.c b/fs/ext4/xattr_security.c index 95d90e0560f0..36f4c1a84c21 100644 --- a/fs/ext4/xattr_security.c +++ b/fs/ext4/xattr_security.c | |||
@@ -12,8 +12,9 @@ | |||
12 | #include "xattr.h" | 12 | #include "xattr.h" |
13 | 13 | ||
14 | static size_t | 14 | static size_t |
15 | ext4_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, | 15 | ext4_xattr_security_list(const struct xattr_handler *handler, |
16 | const char *name, size_t name_len, int type) | 16 | struct dentry *dentry, char *list, size_t list_size, |
17 | const char *name, size_t name_len) | ||
17 | { | 18 | { |
18 | const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; | 19 | const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; |
19 | const size_t total_len = prefix_len + name_len + 1; | 20 | const size_t total_len = prefix_len + name_len + 1; |
@@ -28,8 +29,9 @@ ext4_xattr_security_list(struct dentry *dentry, char *list, size_t list_size, | |||
28 | } | 29 | } |
29 | 30 | ||
30 | static int | 31 | static int |
31 | ext4_xattr_security_get(struct dentry *dentry, const char *name, | 32 | ext4_xattr_security_get(const struct xattr_handler *handler, |
32 | void *buffer, size_t size, int type) | 33 | struct dentry *dentry, const char *name, |
34 | void *buffer, size_t size) | ||
33 | { | 35 | { |
34 | if (strcmp(name, "") == 0) | 36 | if (strcmp(name, "") == 0) |
35 | return -EINVAL; | 37 | return -EINVAL; |
@@ -38,8 +40,9 @@ ext4_xattr_security_get(struct dentry *dentry, const char *name, | |||
38 | } | 40 | } |
39 | 41 | ||
40 | static int | 42 | static int |
41 | ext4_xattr_security_set(struct dentry *dentry, const char *name, | 43 | ext4_xattr_security_set(const struct xattr_handler *handler, |
42 | const void *value, size_t size, int flags, int type) | 44 | struct dentry *dentry, const char *name, |
45 | const void *value, size_t size, int flags) | ||
43 | { | 46 | { |
44 | if (strcmp(name, "") == 0) | 47 | if (strcmp(name, "") == 0) |
45 | return -EINVAL; | 48 | return -EINVAL; |