From: Weston Andros Adamson Date: Thu, 3 Jan 2013 21:42:29 +0000 (-0500) Subject: NFS: Fix access to suid/sgid executables X-Git-Tag: v3.8-rc3~14^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d9a897d4384b77f13781ea813156568f68b83e;p=pandora-kernel.git NFS: Fix access to suid/sgid executables nfs_open_permission_mask() should only check MAY_EXEC for files that are opened with __FMODE_EXEC. Also fix NFSv4 access-in-open path in a similar way -- openflags must be used because fmode will not always have FMODE_EXEC set. This patch fixes https://bugzilla.kernel.org/show_bug.cgi?id=49101 Signed-off-by: Weston Andros Adamson Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org --- Reading git-diff-tree failed