summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2008-06-10 20:05:32 +0000
committersimon <simon@FreeBSD.org>2008-06-10 20:05:32 +0000
commit8f581f70eeac6e2b6a618e83e31989e411198e0d (patch)
tree73afedec55866baa17ad3066bd3e9d668bffb602 /sys/security
parentd3a0f621f9fc09dfdc8009ec300906547c36d18f (diff)
downloadFreeBSD-src-8f581f70eeac6e2b6a618e83e31989e411198e0d.zip
FreeBSD-src-8f581f70eeac6e2b6a618e83e31989e411198e0d.tar.gz
When the file-system containing the audit log file is running low on
disk space a warning is printed. Make this warning a bit more informative. Approved by: rwatson
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_worker.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/security/audit/audit_worker.c b/sys/security/audit/audit_worker.c
index dd37c06..10f4350 100644
--- a/sys/security/audit/audit_worker.c
+++ b/sys/security/audit/audit_worker.c
@@ -177,7 +177,9 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
&cur_lowspace_trigger, 1)) {
(void)audit_send_trigger(
AUDIT_TRIGGER_LOW_SPACE);
- printf("Warning: audit space low\n");
+ printf("Warning: disk space low (< %d%% free) "
+ "on audit log file-system\n",
+ audit_qctrl.aq_minfree);
}
}
}
OpenPOWER on IntegriCloud