diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-09 16:10:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:46 -0400 |
commit | 87729a5514e855ce2c71e3e33833a106b8caf2ae (patch) | |
tree | dd2e7a9fd96b2dd3ebc3951fef2d682e83aa6bb4 /fs/fuse/fuse_i.h | |
parent | db50b96c0f28a21c5a4a19ecaba12d0972aab06a (diff) |
[PATCH] FUSE: tighten check for processes allowed access
This patch tightens the check for allowing processes to access non-privileged
mounts. The rational is that the filesystem implementation can control the
behavior or get otherwise unavailable information of the filesystem user. If
the filesystem user process has the same uid, gid, and is not suid or sgid
application, then access is safe. Otherwise access is not allowed unless the
"allow_other" mount option is given (for which policy is controlled by the
userspace mount utility).
Thanks to everyone linux-fsdevel, especially Martin Mares who helped uncover
problems with the previous approach.
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 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index aff3a01ea02b..3ec2aff3fdb5 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -198,6 +198,9 @@ struct fuse_conn { | |||
198 | /** The user id for this mount */ | 198 | /** The user id for this mount */ |
199 | uid_t user_id; | 199 | uid_t user_id; |
200 | 200 | ||
201 | /** The group id for this mount */ | ||
202 | gid_t group_id; | ||
203 | |||
201 | /** The fuse mount flags for this mount */ | 204 | /** The fuse mount flags for this mount */ |
202 | unsigned flags; | 205 | unsigned flags; |
203 | 206 | ||