From owner-cvs-src@FreeBSD.ORG Wed Sep 27 10:08:04 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C9FC16A415; Wed, 27 Sep 2006 10:08:04 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E8843D46; Wed, 27 Sep 2006 10:08:03 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8RA83Y2068993; Wed, 27 Sep 2006 10:08:03 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8RA83CD068992; Wed, 27 Sep 2006 10:08:03 GMT (envelope-from rwatson) Message-Id: <200609271008.k8RA83CD068992@repoman.freebsd.org> From: Robert Watson Date: Wed, 27 Sep 2006 10:08:03 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/security/audit audit_worker.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 10:08:04 -0000 rwatson 2006-09-27 10:08:03 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/security/audit audit_worker.c Log: Merge audit_worker.c:1.12 from HEAD to RELENG_6: Rework the way errors are handled with respect to how audit records are written to the audit trail file: - audit_record_write() now returns void, and all file system specific error handling occurs inside this function. This pushes error handling complexity out of the record demux routine that hands off to both the trail and audit pipes, and makes trail behavior more consistent with pipes as a record destination. - Rate limit kernel printfs associated with running low on space. Rate limit audit triggers for low space. Rate limit printfs for fail stop events. Rate limit audit worker write error printfs. - Document in detail the types of limits and space checks we perform, and combine common cases. This improves the audit subsystems tolerance to low space conditions by avoiding toasting the console with printfs are waking up the audit daemon continuously. Obtained from: TrustedBSD Project Approved by: re (mux) Revision Changes Path 1.9.2.3 +146 -101 src/sys/security/audit/audit_worker.c