Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_mqueue.c
| Show First 20 Lines • Show All 1,167 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| static int | static int | ||||
| mqfs_access(struct vop_access_args *ap) | mqfs_access(struct vop_access_args *ap) | ||||
| { | { | ||||
| struct vnode *vp = ap->a_vp; | struct vnode *vp = ap->a_vp; | ||||
| struct vattr vattr; | struct vattr vattr; | ||||
| int error; | int error; | ||||
| error = VOP_GETATTR(vp, &vattr, ap->a_cred); | error = VOP_GETATTR(vp, 0, &vattr, ap->a_cred); | ||||
| if (error) | if (error) | ||||
| return (error); | return (error); | ||||
| error = vaccess(vp->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, | error = vaccess(vp->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, | ||||
| ap->a_accmode, ap->a_cred); | ap->a_accmode, ap->a_cred); | ||||
| return (error); | return (error); | ||||
| } | } | ||||
| #if 0 | #if 0 | ||||
| ▲ Show 20 Lines • Show All 1,768 Lines • Show Last 20 Lines | |||||