From 3bff0167b920e03517741b176dc8c7f41ee92008 Mon Sep 17 00:00:00 2001 From: "Simon L. B. Nielsen" Date: Tue, 10 Jun 2008 20:05:32 +0000 Subject: [PATCH] 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 --- sys/security/audit/audit_worker.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/security/audit/audit_worker.c b/sys/security/audit/audit_worker.c index dd37c0604abc..10f4350435d1 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); } } }