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

Function mac_pipe_check_poll_impl

freebsd/security/mac/mac_pipe.c:165–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 "struct pipepair *");
164
165int
166mac_pipe_check_poll_impl(struct ucred *cred, struct pipepair *pp)
167{
168 int error;
169
170 mtx_assert(&pp->pp_mtx, MA_OWNED);
171
172 MAC_POLICY_CHECK_NOSLEEP(pipe_check_poll, cred, pp, pp->pp_label);
173 MAC_CHECK_PROBE2(pipe_check_poll, error, cred, pp);
174
175 return (error);
176}
177
178MAC_CHECK_PROBE_DEFINE2(pipe_check_read, "struct ucred *",
179 "struct pipepair *");

Callers 1

mac_pipe_check_pollFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected