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

Function mac_vnode_check_setutimes

freebsd/security/mac/mac_vfs.c:874–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872 "struct vnode *", "struct timespec *", "struct timespec *");
873
874int
875mac_vnode_check_setutimes(struct ucred *cred, struct vnode *vp,
876 struct timespec atime, struct timespec mtime)
877{
878 int error;
879
880 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_setutimes");
881
882 MAC_POLICY_CHECK(vnode_check_setutimes, cred, vp, vp->v_label, atime,
883 mtime);
884 MAC_CHECK_PROBE4(vnode_check_setutimes, error, cred, vp, &atime,
885 &mtime);
886
887 return (error);
888}
889
890MAC_CHECK_PROBE_DEFINE3(vnode_check_stat, "struct ucred *", "struct ucred *",
891 "struct vnode *");

Callers 1

setutimesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected