diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-11-07 03:59:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:42 -0500 |
commit | 31d40d74b402a6fa18a006fb3745f64609f35b77 (patch) | |
tree | ee8c61e814fcae687e3ba3f8ed4828d6d34f8ff2 /include/linux/fuse.h | |
parent | 5b62073d502a88fedc5c369f8a004bda7c9d1999 (diff) |
[PATCH] FUSE: add access call
Add a new access call, which will only be called if ->permission is invoked
from sys_access(). In all other cases permission checking is delayed until
the actual filesystem operation.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 6e91c9a3a0b6..507913b65af0 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -99,7 +99,8 @@ enum fuse_opcode { | |||
99 | FUSE_OPENDIR = 27, | 99 | FUSE_OPENDIR = 27, |
100 | FUSE_READDIR = 28, | 100 | FUSE_READDIR = 28, |
101 | FUSE_RELEASEDIR = 29, | 101 | FUSE_RELEASEDIR = 29, |
102 | FUSE_FSYNCDIR = 30 | 102 | FUSE_FSYNCDIR = 30, |
103 | FUSE_ACCESS = 34 | ||
103 | }; | 104 | }; |
104 | 105 | ||
105 | /* Conservative buffer size for the client */ | 106 | /* Conservative buffer size for the client */ |
@@ -222,6 +223,11 @@ struct fuse_getxattr_out { | |||
222 | __u32 padding; | 223 | __u32 padding; |
223 | }; | 224 | }; |
224 | 225 | ||
226 | struct fuse_access_in { | ||
227 | __u32 mask; | ||
228 | __u32 padding; | ||
229 | }; | ||
230 | |||
225 | struct fuse_init_in_out { | 231 | struct fuse_init_in_out { |
226 | __u32 major; | 232 | __u32 major; |
227 | __u32 minor; | 233 | __u32 minor; |