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

Function mac_pipe_check_ioctl

freebsd/security/mac/mac_pipe.c:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 "struct pipepair *", "unsigned long", "void *");
146
147int
148mac_pipe_check_ioctl(struct ucred *cred, struct pipepair *pp,
149 unsigned long cmd, void *data)
150{
151 int error;
152
153 mtx_assert(&pp->pp_mtx, MA_OWNED);
154
155 MAC_POLICY_CHECK_NOSLEEP(pipe_check_ioctl, cred, pp, pp->pp_label,
156 cmd, data);
157 MAC_CHECK_PROBE4(pipe_check_ioctl, error, cred, pp, cmd, data);
158
159 return (error);
160}
161
162MAC_CHECK_PROBE_DEFINE2(pipe_check_poll, "struct ucred *",
163 "struct pipepair *");

Callers 1

pipe_ioctlFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected