Miklos Szeredi 22590e41cb fix execute checking in permission()
permission() checks that MAY_EXEC is only allowed on regular files if at least
one execute bit is set in the file mode.

generic_permission() already ensures this, so the extra check in permission()
is superfluous.

If the filesystem defines it's own ->permission() the check may still be
needed.  In this case move it after ->permission().  This is needed because
filesystems such as FUSE may need to refresh the inode attributes before
checking permissions.

This check should be moved inside ->permission(), but that's another story.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:42:52 -07:00
..
2007-10-17 08:42:47 -07:00
2007-10-17 08:42:50 -07:00
2007-10-17 08:42:45 -07:00
2007-10-15 17:56:36 -07:00
2007-10-16 09:43:07 -07:00
2007-10-17 08:42:47 -07:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:46 -07:00
2007-10-17 08:42:45 -07:00
2007-10-08 12:58:14 -07:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:45 -07:00
2007-10-16 09:42:53 -07:00
2007-10-17 08:42:48 -07:00
2007-10-10 09:25:57 +02:00
2007-10-16 09:42:54 -07:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:59:31 +10:00
2007-10-15 17:00:19 +02:00
2007-10-17 08:42:48 -07:00
2007-10-17 08:42:52 -07:00