diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-13 21:02:30 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-13 21:02:30 -0500 |
| commit | 5d2eb548b309be34ecf3b91f0b7300a2b9d09b8c (patch) | |
| tree | 89ce62fe154e6f10a018abb67f5f09015dd394fc /include/linux | |
| parent | 2870f6c4d136e093e22159b8916918ff42c92218 (diff) | |
| parent | 29608d208b3619b3b508a6871622db789611d8a3 (diff) | |
Merge branch 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs xattr cleanups from Al Viro.
* 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
f2fs: xattr simplifications
squashfs: xattr simplifications
9p: xattr simplifications
xattr handlers: Pass handler to operations instead of flags
jffs2: Add missing capability check for listing trusted xattrs
hfsplus: Remove unused xattr handler list operations
ubifs: Remove unused security xattr handler
vfs: Fix the posix_acl_xattr_list return value
vfs: Check attribute names in posix acl xattr handers
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/xattr.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h index 91b0a68d38dc..89474b9d260c 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h | |||
| @@ -21,15 +21,19 @@ struct dentry; | |||
| 21 | 21 | ||
| 22 | struct xattr_handler { | 22 | struct xattr_handler { |
| 23 | const char *prefix; | 23 | const char *prefix; |
| 24 | int flags; /* fs private flags passed back to the handlers */ | 24 | int flags; /* fs private flags */ |
| 25 | size_t (*list)(struct dentry *dentry, char *list, size_t list_size, | 25 | size_t (*list)(const struct xattr_handler *, struct dentry *dentry, |
| 26 | const char *name, size_t name_len, int handler_flags); | 26 | char *list, size_t list_size, const char *name, |
| 27 | int (*get)(struct dentry *dentry, const char *name, void *buffer, | 27 | size_t name_len); |
| 28 | size_t size, int handler_flags); | 28 | int (*get)(const struct xattr_handler *, struct dentry *dentry, |
| 29 | int (*set)(struct dentry *dentry, const char *name, const void *buffer, | 29 | const char *name, void *buffer, size_t size); |
| 30 | size_t size, int flags, int handler_flags); | 30 | int (*set)(const struct xattr_handler *, struct dentry *dentry, |
| 31 | const char *name, const void *buffer, size_t size, | ||
| 32 | int flags); | ||
| 31 | }; | 33 | }; |
| 32 | 34 | ||
| 35 | const char *xattr_full_name(const struct xattr_handler *, const char *); | ||
| 36 | |||
| 33 | struct xattr { | 37 | struct xattr { |
| 34 | const char *name; | 38 | const char *name; |
| 35 | void *value; | 39 | void *value; |
