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

Function sys_getauid

freebsd/security/audit/audit_syscalls.c:593–605  ·  view source on GitHub ↗

* System calls to manage the user audit information. */ ARGSUSED */

Source from the content-addressed store, hash-verified

591 */
592/* ARGSUSED */
593int
594sys_getauid(struct thread *td, struct getauid_args *uap)
595{
596 int error;
597
598 if (jailed(td->td_ucred))
599 return (ENOSYS);
600 error = priv_check(td, PRIV_AUDIT_GETAUDIT);
601 if (error)
602 return (error);
603 return (copyout(&td->td_ucred->cr_audit.ai_auid, uap->auid,
604 sizeof(td->td_ucred->cr_audit.ai_auid)));
605}
606
607/* ARGSUSED */
608int

Callers

nothing calls this directly

Calls 3

jailedFunction · 0.85
priv_checkFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected