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

Function lomac_vnode_relabel

freebsd/security/mac_lomac/mac_lomac.c:2864–2874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2862}
2863
2864static void
2865lomac_vnode_relabel(struct ucred *cred, struct vnode *vp,
2866 struct label *vplabel, struct label *newlabel)
2867{
2868 struct mac_lomac *source, *dest;
2869
2870 source = SLOT(newlabel);
2871 dest = SLOT(vplabel);
2872
2873 try_relabel(source, dest);
2874}
2875
2876static int
2877lomac_vnode_setlabel_extattr(struct ucred *cred, struct vnode *vp,

Callers

nothing calls this directly

Calls 1

try_relabelFunction · 0.85

Tested by

no test coverage detected