| 6818 | } |
| 6819 | |
| 6820 | int |
| 6821 | vn_dir_check_exec(struct vnode *vp, struct componentname *cnp) |
| 6822 | { |
| 6823 | |
| 6824 | if ((cnp->cn_flags & NOEXECCHECK) != 0) { |
| 6825 | cnp->cn_flags &= ~NOEXECCHECK; |
| 6826 | return (0); |
| 6827 | } |
| 6828 | |
| 6829 | return (VOP_ACCESS(vp, VEXEC, cnp->cn_cred, cnp->cn_thread)); |
| 6830 | } |
| 6831 | |
| 6832 | /* |
| 6833 | * Do not use this variant unless you have means other than the hold count |