Weston Andros Adamson f8d9a897d4 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 <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
2013-01-03 17:06:27 -05:00
..
2012-12-06 00:30:44 +01:00
2012-07-30 19:06:52 -04:00
2013-01-03 17:06:27 -05:00
2012-12-20 22:19:42 +00:00
2012-10-02 08:17:04 -07:00
2012-12-20 22:06:33 +00:00
2012-10-02 08:17:02 -07:00
2012-07-30 19:06:41 -04:00
2012-07-30 19:06:46 -04:00
2012-12-20 22:19:42 +00:00
2012-07-30 19:06:52 -04:00