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

Function mac_vnode_check_write

freebsd/security/mac/mac_framework.h:625–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623#endif
624#define mac_vnode_check_write_enabled() __predict_false(mac_vnode_check_write_fp_flag)
625static inline int
626mac_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred,
627 struct vnode *vp)
628{
629
630 mac_vnode_assert_locked(vp, "mac_vnode_check_write");
631 if (mac_vnode_check_write_enabled())
632 return (mac_vnode_check_write_impl(active_cred, file_cred, vp));
633 return (0);
634}
635
636int mac_vnode_check_unlink(struct ucred *cred, struct vnode *dvp,
637 struct vnode *vp, struct componentname *cnp);

Callers 8

vn_rdwrFunction · 0.85
vn_writeFunction · 0.85
vn_truncateFunction · 0.85
vn_fallocateFunction · 0.85
ktr_writerequestFunction · 0.85
alq_doioFunction · 0.85
kern_truncateFunction · 0.85

Calls 2

mac_vnode_assert_lockedFunction · 0.85

Tested by

no test coverage detected