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

Function mac_pipe_check_write

freebsd/security/mac/mac_pipe.c:231–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 "struct pipepair *");
230
231int
232mac_pipe_check_write(struct ucred *cred, struct pipepair *pp)
233{
234 int error;
235
236 mtx_assert(&pp->pp_mtx, MA_OWNED);
237
238 MAC_POLICY_CHECK_NOSLEEP(pipe_check_write, cred, pp, pp->pp_label);
239 MAC_CHECK_PROBE2(pipe_check_write, error, cred, pp);
240
241 return (error);
242}
243
244int
245mac_pipe_label_set(struct ucred *cred, struct pipepair *pp,

Callers 1

pipe_writeFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected