ARGSUSED */
| 714 | |
| 715 | /* ARGSUSED */ |
| 716 | int |
| 717 | sys_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 */ |
| 733 | int |
nothing calls this directly
no test coverage detected