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

Function mac_posixsem_check_post

freebsd/security/mac/mac_posix_sem.c:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 "struct ucred *", "struct ksem *");
137
138int
139mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred,
140 struct ksem *ks)
141{
142 int error;
143
144 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred,
145 ks, ks->ks_label);
146 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred,
147 ks);
148
149 return (error);
150}
151
152MAC_CHECK_PROBE_DEFINE3(posixsem_check_stat, "struct ucred *",
153 "struct ucred *", "struct ksem *");

Callers 1

sys_ksem_postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected