* Verify permissions */
| 1168 | * Verify permissions |
| 1169 | */ |
| 1170 | static int |
| 1171 | mqfs_access(struct vop_access_args *ap) |
| 1172 | { |
| 1173 | struct vnode *vp = ap->a_vp; |
| 1174 | struct vattr vattr; |
| 1175 | int error; |
| 1176 | |
| 1177 | error = VOP_GETATTR(vp, &vattr, ap->a_cred); |
| 1178 | if (error) |
| 1179 | return (error); |
| 1180 | error = vaccess(vp->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, |
| 1181 | ap->a_accmode, ap->a_cred); |
| 1182 | return (error); |
| 1183 | } |
| 1184 | |
| 1185 | #if 0 |
| 1186 | struct vop_getattr_args { |
nothing calls this directly
no test coverage detected