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

Function mac_vnode_check_open

freebsd/security/mac/mac_framework.h:511–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509#endif
510#define mac_vnode_check_open_enabled() __predict_false(mac_vnode_check_open_fp_flag)
511static inline int
512mac_vnode_check_open(struct ucred *cred, struct vnode *vp,
513 accmode_t accmode)
514{
515
516 mac_vnode_assert_locked(vp, "mac_vnode_check_open");
517 if (mac_vnode_check_open_enabled())
518 return (mac_vnode_check_open_impl(cred, vp, accmode));
519 return (0);
520}
521
522int mac_vnode_check_mprotect(struct ucred *cred, struct vnode *vp,
523 int prot);

Callers 2

vn_open_vnodeFunction · 0.85
unp_connectatFunction · 0.85

Calls 2

mac_vnode_assert_lockedFunction · 0.85

Tested by

no test coverage detected