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

Function mac_posixsem_check_wait

freebsd/security/mac/mac_posix_sem.c:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 "struct ucred *", "struct ksem *");
186
187int
188mac_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred,
189 struct ksem *ks)
190{
191 int error;
192
193 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_wait, active_cred, file_cred,
194 ks, ks->ks_label);
195 MAC_CHECK_PROBE3(posixsem_check_wait, error, active_cred, file_cred,
196 ks);
197
198 return (error);
199}
200
201MAC_CHECK_PROBE_DEFINE3(posixsem_check_setmode, "struct ucred *",
202 "struct ksem *", "mode_t");

Callers 1

kern_sem_waitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected