Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2008 11:56:35 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186649 - head/sys/security/audit
Message-ID:  <200812311156.mBVBuZ1T025207@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812311156.mBVBuZ1T025207>