freebsd-dev/sys/cddl/contrib/opensolaris/uts
Jaakko Heinonen de478dd4b4 execve(2) has a special check for file permissions: a file must have at
least one execute bit set, otherwise execve(2) will return EACCES even
for an user with PRIV_VFS_EXEC privilege.

Add the check also to vaccess(9), vaccess_acl_nfs4(9) and
vaccess_acl_posix1e(9). This makes access(2) to better agree with
execve(2). Because ZFS doesn't use vaccess(9) for VEXEC, add the check
to zfs_freebsd_access() too. There may be other file systems which are
not using vaccess*() functions and need to be handled separately.

PR:		kern/125009
Reviewed by:	bde, trasz
Approved by:	pjd (ZFS part)
2010-08-30 16:30:18 +00:00
..
common execve(2) has a special check for file permissions: a file must have at 2010-08-30 16:30:18 +00:00
intel Remove debugging. 2010-08-28 08:39:37 +00:00
sparc Merge from vendor-sys/opensolaris: 2010-07-06 10:28:19 +00:00