linux/fs/fuse
Miklos Szeredi ebc14c4dbe fuse: fix permission checking on sticky directories
The VFS checks sticky bits on the parent directory even if the filesystem
defines it's own ->permission().  In some situations (sshfs, mountlo, etc) the
user does have permission to delete a file even if the attribute based
checking would not allow it.

So work around this by storing the permission bits separately and returning
them in stat(), but cutting the permission bits off from inode->i_mode.

This is slightly hackish, but it's probably not worth it to add new
infrastructure in VFS and a slight performance penalty for all filesystems,
just for the sake of fuse.

[Jan Engelhardt] cosmetic fixes
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:43:04 -07:00
..
control.c [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00
dev.c fuse: add reference counting to fuse_file 2007-10-17 08:43:03 -07:00
dir.c fuse: fix permission checking on sticky directories 2007-10-17 08:43:04 -07:00
file.c fuse: refresh stale attributes in fuse_permission() 2007-10-17 08:43:04 -07:00
fuse_i.h fuse: fix permission checking on sticky directories 2007-10-17 08:43:04 -07:00
inode.c fuse: fix permission checking on sticky directories 2007-10-17 08:43:04 -07:00
Makefile [PATCH] fuse: add control filesystem 2006-06-25 10:01:19 -07:00