When aborting fork() due to a failure, if using MAC, make sure to clean
up the p_label field. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research
This commit is contained in:
parent
a8938746a3
commit
6bea667f63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124979
@ -737,6 +737,9 @@ fork1(td, flags, pages, procp)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user