PERFORCE change 45387 for review

Robert Watson rwatson at FreeBSD.org
Thu Jan 15 15:36:14 GMT 2004


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

Change 45387 by rwatson at rwatson_tislabs on 2004/01/15 07:35:23

	When aborting fork(), make sure to free p_label.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_fork.c#38 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_fork.c#38 (text+ko) ====

@@ -738,6 +738,9 @@
 		printf("maxproc limit exceeded by uid %i, please see tuning(7) and login.conf(5).\n",
 			uid);
 	sx_xunlock(&allproc_lock);
+#ifdef MAC
+	mac_destroy_proc(newproc);
+#endif
 	uma_zfree(proc_zone, newproc);
 	if (p1->p_flag & P_SA) {
 		PROC_LOCK(p1);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list