diff options
author | csjp <csjp@FreeBSD.org> | 2008-11-30 19:58:03 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2008-11-30 19:58:03 +0000 |
commit | 57cb6978291789ff7c2ecc752d50b676c520dfc7 (patch) | |
tree | f4571b73afc524695184acb61770a1b7cb535741 /sys/security | |
parent | 06474d9a01f382bbe820a58097b8f7ac7fa979ac (diff) | |
download | FreeBSD-src-57cb6978291789ff7c2ecc752d50b676c520dfc7.zip FreeBSD-src-57cb6978291789ff7c2ecc752d50b676c520dfc7.tar.gz |
Partially roll back a revision which changed the error code being returned
by getaudit(2). Some applications such has su, id will interpret E2BIG as
requiring the use of getaudit_addr(2) to pull extended audit state (ip6)
from the kernel.
This change un-breaks the ABI when auditing has been activated on a system
and the users are logged in via ip6.
This is a RELENG_7_1 candidate.
MFC after: 1 day
Discussed with: rwatson
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 83291b3..f8d45fe 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -510,7 +510,7 @@ getaudit(struct thread *td, struct getaudit_args *uap) if (error) return (error); if (cred->cr_audit.ai_termid.at_type == AU_IPv6) - return (ERANGE); + return (E2BIG); bzero(&ai, sizeof(ai)); ai.ai_auid = cred->cr_audit.ai_auid; ai.ai_mask = cred->cr_audit.ai_mask; |