svn commit: r357410 - head/sys/fs/pseudofs

Kyle Evans kevans at FreeBSD.org
Sun Feb 2 15:36:13 UTC 2020


Author: kevans
Date: Sun Feb  2 15:36:12 2020
New Revision: 357410
URL: https://svnweb.freebsd.org/changeset/base/357410

Log:
  pseudofs: don't do VEXEC check in VOP_CACHEDLOOKUP
  
  VOP_CACHEDLOOKUP should assume that the appropriate VEXEC check has been
  done in the caller (vfs_cache_lookup), so it does not belong here.

Modified:
  head/sys/fs/pseudofs/pseudofs_vnops.c

Modified: head/sys/fs/pseudofs/pseudofs_vnops.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs_vnops.c	Sun Feb  2 14:41:09 2020	(r357409)
+++ head/sys/fs/pseudofs/pseudofs_vnops.c	Sun Feb  2 15:36:12 2020	(r357410)
@@ -466,10 +466,6 @@ pfs_lookup(struct vop_cachedlookup_args *va)
 		PFS_RETURN (ENOTDIR);
 	KASSERT_PN_IS_DIR(pd);
 
-	error = VOP_ACCESS(vn, VEXEC, cnp->cn_cred, cnp->cn_thread);
-	if (error)
-		PFS_RETURN (error);
-
 	/*
 	 * Don't support DELETE or RENAME.  CREATE is supported so
 	 * that O_CREAT will work, but the lookup will still fail if


More information about the svn-src-all mailing list