Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2008 22:10:40 GMT
From:      Wayne Salamon <wsalamon@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 144112 for review
Message-ID:  <200806252210.m5PMAeXR074660@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=144112

Change 144112 by wsalamon@vh2 on 2008/06/25 22:09:51

	The thread audit record must be set to NULL after freeing the record;
	when the thread struct is recycled, we don't have a record pointer
	referencing garbage.

Affected files ...

.. //depot/projects/trustedbsd/audit_mac/src/sys/security/audit/audit.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/audit_mac/src/sys/security/audit/audit.c#8 (text) ====

@@ -584,6 +584,7 @@
 	else if (ret == MAC_AUDIT_NO) {
 		audit_free(td->td_ar);	/* Nobody gets the record, not even
 					   pipes or other listeners */
+		td->td_ar = NULL;
 		return;
 	}
 } while (0);



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