diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-08-23 14:39:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-08-23 14:39:01 +0000 |
commit | 74fdf0ae738f6f65b411206cf17d9e60294f77a7 (patch) | |
tree | b33fd9099563b2380647245e9124e2e7e19b406b /sys/security | |
parent | 4cc510ad6aba63ef7dffd02a6a85613528899ce4 (diff) | |
download | FreeBSD-src-74fdf0ae738f6f65b411206cf17d9e60294f77a7.zip FreeBSD-src-74fdf0ae738f6f65b411206cf17d9e60294f77a7.tar.gz |
When getaudit(2) is unable to fit the terminal IPv6 address into the
space provided by its argument structure, return EOVERFLOW instead of
E2BIG. The latter is documented in Solaris's man page, but the
former is implemented. In either case, the caller should use
getaudit_addr(2) to return the IPv6 address.
Submitted by: sson
Obtained from: Apple, Inc.
MFC after: 3 days
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/audit/audit_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c index b548794..de7ca1c 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -508,7 +508,7 @@ getaudit(struct thread *td, struct getaudit_args *uap) if (error) return (error); if (td->td_ucred->cr_audit.ai_termid.at_type == AU_IPv6) - return (E2BIG); + return (EOVERFLOW); bzero(&ai, sizeof(ai)); ai.ai_auid = td->td_ucred->cr_audit.ai_auid; ai.ai_mask = td->td_ucred->cr_audit.ai_mask; |