freebsd-dev/sys/compat/freebsd32
Kyle Evans 275c821d3d audit: correct reporting of *execve(2) success
r326145 corrected do_execve() to return EJUSTRETURN upon success so that
important registers are not clobbered. This had the side effect of tapping
out 'failures' for all *execve(2) audit records, which is less than useful
for auditing purposes.

Audit exec returns earlier, where we can know for sure that EJUSTRETURN
translates to success. Note that this unsets TDP_AUDITREC as we commit the
audit record, so the usual audit in the syscall return path will do nothing.

PR:		249179
Reported by:	Eirik Oeverby <ltning-freebsd anduin net>
Reviewed by:	csjp, kib
MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D26922
2020-10-24 14:39:17 +00:00
..
freebsd32_capability.c Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
freebsd32_ioctl.c Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ioctl.h Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ipc.h compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
freebsd32_misc.c audit: correct reporting of *execve(2) success 2020-10-24 14:39:17 +00:00
freebsd32_misc.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_proto.h Regen after r366145. 2020-09-25 10:05:38 +00:00
freebsd32_signal.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_syscall.h Refactor ptrace() ABI compatibility. 2020-06-09 16:43:23 +00:00
freebsd32_syscalls.c Refactor ptrace() ABI compatibility. 2020-06-09 16:43:23 +00:00
freebsd32_sysent.c Regen after r366145. 2020-09-25 10:05:38 +00:00
freebsd32_systrace_args.c Refactor ptrace() ABI compatibility. 2020-06-09 16:43:23 +00:00
freebsd32_util.h Use uintptr_t instead of register_t * for the stack base. 2019-12-03 23:17:54 +00:00
freebsd32.h Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
Makefile sysent targets: further cleanup and deduplication 2020-01-18 20:37:45 +00:00
syscalls.conf Use the main capabilities.conf for freebsd32. 2018-11-14 00:46:02 +00:00
syscalls.master Refactor ptrace() ABI compatibility. 2020-06-09 16:43:23 +00:00