diff options
Diffstat (limited to 'fs/ocfs2/xattr.h')
-rw-r--r-- | fs/ocfs2/xattr.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/ocfs2/xattr.h b/fs/ocfs2/xattr.h index 55c5256ff563..188ef6ba6836 100644 --- a/fs/ocfs2/xattr.h +++ b/fs/ocfs2/xattr.h | |||
@@ -30,6 +30,13 @@ enum ocfs2_xattr_type { | |||
30 | OCFS2_XATTR_MAX | 30 | OCFS2_XATTR_MAX |
31 | }; | 31 | }; |
32 | 32 | ||
33 | struct ocfs2_security_xattr_info { | ||
34 | int enable; | ||
35 | char *name; | ||
36 | void *value; | ||
37 | size_t value_len; | ||
38 | }; | ||
39 | |||
33 | extern struct xattr_handler ocfs2_xattr_user_handler; | 40 | extern struct xattr_handler ocfs2_xattr_user_handler; |
34 | extern struct xattr_handler ocfs2_xattr_trusted_handler; | 41 | extern struct xattr_handler ocfs2_xattr_trusted_handler; |
35 | extern struct xattr_handler ocfs2_xattr_security_handler; | 42 | extern struct xattr_handler ocfs2_xattr_security_handler; |
@@ -43,5 +50,15 @@ int ocfs2_xattr_set_handle(handle_t *, struct inode *, struct buffer_head *, | |||
43 | struct ocfs2_alloc_context *, | 50 | struct ocfs2_alloc_context *, |
44 | struct ocfs2_alloc_context *); | 51 | struct ocfs2_alloc_context *); |
45 | int ocfs2_xattr_remove(struct inode *, struct buffer_head *); | 52 | int ocfs2_xattr_remove(struct inode *, struct buffer_head *); |
53 | int ocfs2_init_security_get(struct inode *, struct inode *, | ||
54 | struct ocfs2_security_xattr_info *); | ||
55 | int ocfs2_init_security_set(handle_t *, struct inode *, | ||
56 | struct buffer_head *, | ||
57 | struct ocfs2_security_xattr_info *, | ||
58 | struct ocfs2_alloc_context *, | ||
59 | struct ocfs2_alloc_context *); | ||
60 | int ocfs2_calc_security_init(struct inode *, | ||
61 | struct ocfs2_security_xattr_info *, | ||
62 | int *, int *, struct ocfs2_alloc_context **); | ||
46 | 63 | ||
47 | #endif /* OCFS2_XATTR_H */ | 64 | #endif /* OCFS2_XATTR_H */ |