From owner-cvs-all@FreeBSD.ORG Fri Sep 22 13:50:59 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B1B516A403; Fri, 22 Sep 2006 13:50:59 +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 3FD3943D45; Fri, 22 Sep 2006 13:50:59 +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 k8MDoxZR009907; Fri, 22 Sep 2006 13:50:59 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8MDoxhZ009906; Fri, 22 Sep 2006 13:50:59 GMT (envelope-from rwatson) Message-Id: <200609221350.k8MDoxhZ009906@repoman.freebsd.org> From: Robert Watson Date: Fri, 22 Sep 2006 13:50:58 +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_bsm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 13:50:59 -0000 rwatson 2006-09-22 13:50:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/security/audit audit_bsm.c Log: Merge audit_bsm.c:1.14 from HEAD to RELENG_6: Rather than allocating all buffer memory for the completed BSM record when allocating the record in the first place, allocate the final buffer when closing the BSM record. At that point, more size information is available, so a sufficiently large buffer can be allocated. This allows the kernel to generate audit records in excess of MAXAUDITDATA bytes, but is consistent with Solaris's behavior. This only comes up when auditing command line arguments, in which case we presume the administrator really does want the data as they have specified the policy flag to gather them. Obtained from: TrustedBSD Project Approved by: re (mux) Revision Changes Path 1.10.2.5 +17 -19 src/sys/security/audit/audit_bsm.c