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

Function mac_vnode_check_readlink

freebsd/security/mac/mac_framework.h:548–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546#endif
547#define mac_vnode_check_readlink_enabled() __predict_false(mac_vnode_check_readlink_fp_flag)
548static inline int
549mac_vnode_check_readlink(struct ucred *cred, struct vnode *vp)
550{
551
552 mac_vnode_assert_locked(vp, "mac_vnode_check_readlink");
553 if (mac_vnode_check_readlink_enabled())
554 return (mac_vnode_check_readlink_impl(cred, vp));
555 return (0);
556}
557#define mac_vnode_check_rename_from_enabled() __predict_false(mac_vnode_check_rename_from_fp_flag)
558#ifdef MAC
559extern bool mac_vnode_check_rename_from_fp_flag;

Callers 2

kern_readlink_vpFunction · 0.85
nameiFunction · 0.85

Calls 2

mac_vnode_assert_lockedFunction · 0.85

Tested by

no test coverage detected