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

Function mac_inpcb_check_visible

freebsd/security/mac/mac_inet.c:379–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 "struct inpcb *");
378
379int
380mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp)
381{
382 int error;
383
384 INP_LOCK_ASSERT(inp);
385
386 MAC_POLICY_CHECK_NOSLEEP(inpcb_check_visible, cred, inp,
387 inp->inp_label);
388 MAC_CHECK_PROBE2(inpcb_check_visible, error, cred, inp);
389
390 return (error);
391}
392
393void
394mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)

Callers 1

cr_canseeinpcbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected