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

Function lomac_socket_relabel

freebsd/security/mac_lomac/mac_lomac.c:2052–2064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2050}
2051
2052static void
2053lomac_socket_relabel(struct ucred *cred, struct socket *so,
2054 struct label *solabel, struct label *newlabel)
2055{
2056 struct mac_lomac *source, *dest;
2057
2058 SOCK_LOCK_ASSERT(so);
2059
2060 source = SLOT(newlabel);
2061 dest = SLOT(solabel);
2062
2063 try_relabel(source, dest);
2064}
2065
2066static void
2067lomac_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel,

Callers

nothing calls this directly

Calls 1

try_relabelFunction · 0.85

Tested by

no test coverage detected