From owner-svn-src-all@FreeBSD.ORG Wed Dec 31 11:56:35 2008 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 6395B106566C; Wed, 31 Dec 2008 11:56:35 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 503238FC08; Wed, 31 Dec 2008 11:56:35 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBVBuZEw025208; Wed, 31 Dec 2008 11:56:35 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBVBuZ1T025207; Wed, 31 Dec 2008 11:56:35 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200812311156.mBVBuZ1T025207@svn.freebsd.org> From: Robert Watson Date: Wed, 31 Dec 2008 11:56:35 +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: r186649 - 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: Wed, 31 Dec 2008 11:56:35 -0000 Author: rwatson Date: Wed Dec 31 11:56:35 2008 New Revision: 186649 URL: http://svn.freebsd.org/changeset/base/186649 Log: Call au_errno_to_bsm() on the errno value passed into au_to_return32() to convert local FreeBSD error numbers into BSM error numbers. Obtained from: TrustedBSD Project Modified: head/sys/security/audit/audit_bsm.c Modified: head/sys/security/audit/audit_bsm.c ============================================================================== --- head/sys/security/audit/audit_bsm.c Wed Dec 31 11:19:46 2008 (r186648) +++ head/sys/security/audit/audit_bsm.c Wed Dec 31 11:56:35 2008 (r186649) @@ -1462,7 +1462,7 @@ kaudit_to_bsm(struct kaudit_record *kar, } kau_write(rec, subj_tok); - tok = au_to_return32((char)ar->ar_errno, ar->ar_retval); + tok = au_to_return32(au_errno_to_bsm(ar->ar_errno), ar->ar_retval); kau_write(rec, tok); /* Every record gets a return token */ kau_close(rec, &ar->ar_endtime, ar->ar_event);