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.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.c')
-rw-r--r-- | sys/security/audit/audit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 5eaa0be..47de6ee 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -305,7 +305,7 @@ audit_record_write(struct vnode *vp, struct kaudit_record *ar, * then kindly suggest to the audit daemon to do something. */ if (mnt_stat->f_bfree < AUDIT_HARD_LIMIT_FREE_BLOCKS) { - send_trigger(AUDIT_TRIGGER_NO_SPACE); + (void)send_trigger(AUDIT_TRIGGER_NO_SPACE); /* Hopefully userspace did something about all the previous * triggers that were sent prior to this critical condition. * If fail-stop is set, then we're done; goodnight Gracie. @@ -328,7 +328,7 @@ audit_record_write(struct vnode *vp, struct kaudit_record *ar, temp = mnt_stat->f_blocks / (100 / audit_qctrl.aq_minfree); if (mnt_stat->f_bfree < temp) - send_trigger(AUDIT_TRIGGER_LOW_SPACE); + (void)send_trigger(AUDIT_TRIGGER_LOW_SPACE); } /* Check if the current log file is full; if so, call for @@ -340,7 +340,7 @@ audit_record_write(struct vnode *vp, struct kaudit_record *ar, (audit_file_rotate_wait == 0) && (vattr.va_size >= audit_fstat.af_filesz)) { audit_file_rotate_wait = 1; - send_trigger(AUDIT_TRIGGER_OPEN_NEW); + (void)send_trigger(AUDIT_TRIGGER_OPEN_NEW); } /* |