From owner-svn-src-all@FreeBSD.ORG Sun Jan 31 22:31:01 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAE3B1065676; Sun, 31 Jan 2010 22:31:01 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AA4728FC1A; Sun, 31 Jan 2010 22:31:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0VMV1UA058157; Sun, 31 Jan 2010 22:31:01 GMT (envelope-from csjp@svn.freebsd.org) Received: (from csjp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0VMV1TK058155; Sun, 31 Jan 2010 22:31:01 GMT (envelope-from csjp@svn.freebsd.org) Message-Id: <201001312231.o0VMV1TK058155@svn.freebsd.org> From: "Christian S.J. Peron" Date: Sun, 31 Jan 2010 22:31:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203328 - head/sys/security/audit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2010 22:31:01 -0000 Author: csjp Date: Sun Jan 31 22:31:01 2010 New Revision: 203328 URL: http://svn.freebsd.org/changeset/base/203328 Log: Make sure we convert audit records that were produced as the result of the closefrom(2) syscall. Modified: head/sys/security/audit/audit_bsm.c Modified: head/sys/security/audit/audit_bsm.c ============================================================================== --- head/sys/security/audit/audit_bsm.c Sun Jan 31 22:21:08 2010 (r203327) +++ head/sys/security/audit/audit_bsm.c Sun Jan 31 22:31:01 2010 (r203328) @@ -842,6 +842,13 @@ kaudit_to_bsm(struct kaudit_record *kar, UPATH1_VNODE1_TOKENS; break; + case AUE_CLOSEFROM: + if (ARG_IS_VALID(kar, ARG_FD)) { + tok = au_to_arg32(1, "fd", ar->ar_arg_fd); + kau_write(rec, tok); + } + break; + case AUE_CORE: if (ARG_IS_VALID(kar, ARG_SIGNUM)) { tok = au_to_arg32(1, "signal", ar->ar_arg_signum);