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

Function mac_vnode_check_lookup

freebsd/security/mac/mac_framework.h:473–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471#endif
472#define mac_vnode_check_lookup_enabled() __predict_false(mac_vnode_check_lookup_fp_flag)
473static inline int
474mac_vnode_check_lookup(struct ucred *cred, struct vnode *dvp,
475 struct componentname *cnp)
476{
477
478 mac_vnode_assert_locked(dvp, "mac_vnode_check_lookup");
479 if (mac_vnode_check_lookup_enabled())
480 return (mac_vnode_check_lookup_impl(cred, dvp, cnp));
481 return (0);
482}
483
484int mac_vnode_check_mmap_impl(struct ucred *cred, struct vnode *vp, int prot,
485 int flags);

Callers 1

lookupFunction · 0.85

Calls 2

mac_vnode_assert_lockedFunction · 0.85

Tested by

no test coverage detected