summaryrefslogtreecommitdiff
path: root/usr/src/lib/auditd_plugins
diff options
context:
space:
mode:
authortz204579 <none@none>2007-10-24 13:35:35 -0700
committertz204579 <none@none>2007-10-24 13:35:35 -0700
commit6a3b10db10504576d94f22ea0d7aaf12b96b0bbe (patch)
tree0f003eaac0e217540c732ce77ffb8893569cf41f /usr/src/lib/auditd_plugins
parentd7b20d6bf0e86775f74d3e2c81ac8dfba531e2a0 (diff)
downloadillumos-gate-6a3b10db10504576d94f22ea0d7aaf12b96b0bbe.tar.gz
6549682 uadmin audit records are no longer generated for the global zone
6608684 $SRC/lib/libbsm/common/audit_private.h has definitions for removed interfaces. 6611462 libbsm's adt_to_text() incorrectly handles message lists 6617501 auditxml may produce too long lines in adt_event.h for message lists 6617877 adt.xml should explain how to add a msg list --HG-- rename : usr/src/lib/libbsm/common/audit_uadmin.c => deleted_files/usr/src/lib/libbsm/common/audit_uadmin.c
Diffstat (limited to 'usr/src/lib/auditd_plugins')
-rw-r--r--usr/src/lib/auditd_plugins/binfile/binfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/lib/auditd_plugins/binfile/binfile.c b/usr/src/lib/auditd_plugins/binfile/binfile.c
index c9cdc1a462..9a1c5d43a5 100644
--- a/usr/src/lib/auditd_plugins/binfile/binfile.c
+++ b/usr/src/lib/auditd_plugins/binfile/binfile.c
@@ -517,8 +517,10 @@ close_log(dirlist_t *currentdir, char *oname, char *newname)
* newname is "" if binfile is being closed down.
*/
(void) write_file_token(currentdir->dl_fd, newname);
- if (currentdir->dl_fd >= 0)
+ if (currentdir->dl_fd >= 0) {
+ (void) fsync(currentdir->dl_fd);
(void) close(currentdir->dl_fd);
+ }
currentdir->dl_fd = -1;
(void) rename(currentdir->dl_filename, oldname);