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

Function mac_pipe_check_read

freebsd/security/mac/mac_pipe.c:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 "struct pipepair *");
180
181int
182mac_pipe_check_read(struct ucred *cred, struct pipepair *pp)
183{
184 int error;
185
186 mtx_assert(&pp->pp_mtx, MA_OWNED);
187
188 MAC_POLICY_CHECK_NOSLEEP(pipe_check_read, cred, pp, pp->pp_label);
189 MAC_CHECK_PROBE2(pipe_check_read, error, cred, pp);
190
191 return (error);
192}
193
194MAC_CHECK_PROBE_DEFINE3(pipe_check_relabel, "struct ucred *",
195 "struct pipepair *", "struct label *");

Callers 1

pipe_readFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected