kernel-fxtec-pro1x/fs/nfs
Miklos Szeredi f696a3659f [PATCH] move executable checking into ->permission()
For execute permission on a regular files we need to check if file has
any execute bits at all, regardless of capabilites.

This check is normally performed by generic_permission() but was also
added to the case when the filesystem defines its own ->permission()
method.  In the latter case the filesystem should be responsible for
performing this check.

Move the check from inode_permission() inside filesystems which are
not calling generic_permission().

Create a helper function execute_ok() that returns true if the inode
is a directory or if any execute bits are present in i_mode.

Also fix up the following code:

 - coda control file is never executable
 - sysctl files are never executable
 - hfs_permission seems broken on MAY_EXEC, remove
 - hfsplus_permission is eqivalent to generic_permission(), remove

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
2008-10-23 05:13:25 -04:00
..
callback.c NFS: Enable NFSv4 callback server to listen on AF_INET6 sockets 2008-10-17 13:06:41 -04:00
callback.h
callback_proc.c
callback_xdr.c
client.c NFS: Don't apply NFS_MOUNT_FLAGMASK to text-based mounts 2008-10-07 17:23:56 -04:00
delegation.c
delegation.h
dir.c [PATCH] move executable checking into ->permission() 2008-10-23 05:13:25 -04:00
direct.c
file.c nfs: remove an obsolete nfs_flock comment 2008-10-07 18:16:21 -04:00
getroot.c [PATCH] switch all filesystems over to d_obtain_alias 2008-10-23 05:13:01 -04:00
idmap.c
inode.c NFS: Fix a resolution problem with nfs_inode->cache_change_attribute 2008-10-14 19:24:50 -04:00
internal.h NFS: Cleanup nfs_set_port 2008-10-10 14:41:50 -04:00
iostat.h
Makefile
mount_clnt.c NFS: Client mounts hang when exported directory do not exist 2008-10-07 18:19:01 -04:00
namespace.c nfs: BUG_ON in nfs_follow_mountpoint 2008-10-07 18:15:16 -04:00
nfs2xdr.c
nfs3acl.c NFS: missing nfs_fattr_init in nfs3_proc_getacl and nfs3_proc_setacls (resend #2) 2008-10-07 18:16:22 -04:00
nfs3proc.c nfs: authenticated deep mounting 2008-10-07 18:16:22 -04:00
nfs3xdr.c
nfs4_fs.h
nfs4namespace.c nfs: Fix misparsing of nfsv4 fs_locations attribute 2008-10-07 18:17:47 -04:00
nfs4proc.c Make nfs_file_cred more robust. 2008-10-17 13:06:45 -04:00
nfs4renewd.c
nfs4state.c
nfs4xdr.c
nfsroot.c vfs: Use const for kernel parser table 2008-10-13 10:10:37 -07:00
pagelist.c
proc.c nfs: authenticated deep mounting 2008-10-07 18:16:22 -04:00
read.c
super.c NFS: use correct fs type for v4 submounts and referrals 2008-10-17 13:06:48 -04:00
symlink.c
sysctl.c
unlink.c
write.c NFS: Don't use range_cyclic for data integrity syncs 2008-10-07 18:19:05 -04:00