MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mqfs_access

Function mqfs_access

freebsd/kern/uipc_mqueue.c:1170–1183  ·  view source on GitHub ↗

* Verify permissions */

Source from the content-addressed store, hash-verified

1168 * Verify permissions
1169 */
1170static int
1171mqfs_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
1186struct vop_getattr_args {

Callers

nothing calls this directly

Calls 2

VOP_GETATTRFunction · 0.85
vaccessFunction · 0.85

Tested by

no test coverage detected