PERFORCE change 144112 for review

Wayne Salamon wsalamon at FreeBSD.org
Wed Jun 25 22:10:44 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=144112

Change 144112 by wsalamon at 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);


More information about the p4-projects mailing list