* System calls to manage the user audit information. */ ARGSUSED */
| 591 | */ |
| 592 | /* ARGSUSED */ |
| 593 | int |
| 594 | sys_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 */ |
| 608 | int |
nothing calls this directly
no test coverage detected