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

Function mac_cred_check_setresuid

freebsd/security/mac/mac_cred.c:311–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 "uid_t", "uid_t");
310
311int
312mac_cred_check_setresuid(struct ucred *cred, uid_t ruid, uid_t euid,
313 uid_t suid)
314{
315 int error;
316
317 MAC_POLICY_CHECK_NOSLEEP(cred_check_setresuid, cred, ruid, euid, suid);
318 MAC_CHECK_PROBE4(cred_check_setresuid, error, cred, ruid, euid,
319 suid);
320
321 return (error);
322}
323
324MAC_CHECK_PROBE_DEFINE4(cred_check_setresgid, "struct ucred *", "gid_t",
325 "gid_t", "gid_t");

Callers 1

sys_setresuidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected