diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-18 18:31:24 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-18 18:31:24 +0000 |
commit | 7c231dc685e975ee45b3a9f198684ded82df4369 (patch) | |
tree | 23d296a0736176d58edef3baf847374d8aa13145 /sys/security/audit/audit_syscalls.c | |
parent | 7484436a849b8e0e6e8ffe1ad230e0c8aafce285 (diff) | |
download | FreeBSD-src-7c231dc685e975ee45b3a9f198684ded82df4369.zip FreeBSD-src-7c231dc685e975ee45b3a9f198684ded82df4369.tar.gz |
Merge perforce change 93199:
Change send_trigger() prototype to return an int, so that user
space callers can tell if the message was successfully placed
in the trigger queue. This isn't quite the same as it being
successfully received, but is close enough that we can generate
a more useful warning message in audit(8).
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit/audit_syscalls.c')
-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 19f1d30..091e023 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -335,7 +335,7 @@ auditon(struct thread *td, struct auditon_args *uap) if ((udata.au_trigger < AUDIT_TRIGGER_MIN) || (udata.au_trigger > AUDIT_TRIGGER_MAX)) return (EINVAL); - send_trigger(udata.au_trigger); + return (send_trigger(udata.au_trigger)); break; } /* Copy data back to userspace for the GET comands */ |