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

Function sys_getaudit_addr

freebsd/security/audit/audit_syscalls.c:716–730  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

714
715/* ARGSUSED */
716int
717sys_getaudit_addr(struct thread *td, struct getaudit_addr_args *uap)
718{
719 int error;
720
721 if (jailed(td->td_ucred))
722 return (ENOSYS);
723 if (uap->length < sizeof(*uap->auditinfo_addr))
724 return (EOVERFLOW);
725 error = priv_check(td, PRIV_AUDIT_GETAUDIT);
726 if (error)
727 return (error);
728 return (copyout(&td->td_ucred->cr_audit, uap->auditinfo_addr,
729 sizeof(*uap->auditinfo_addr)));
730}
731
732/* ARGSUSED */
733int

Callers

nothing calls this directly

Calls 3

jailedFunction · 0.85
priv_checkFunction · 0.50
copyoutFunction · 0.50

Tested by

no test coverage detected