Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_fork.c
Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Lines | #endif | ||||
p2->p_fdtol = fdtol; | p2->p_fdtol = fdtol; | ||||
if (p1->p_flag2 & P2_INHERIT_PROTECTED) { | if (p1->p_flag2 & P2_INHERIT_PROTECTED) { | ||||
p2->p_flag |= P_PROTECTED; | p2->p_flag |= P_PROTECTED; | ||||
p2->p_flag2 |= P2_INHERIT_PROTECTED; | p2->p_flag2 |= P2_INHERIT_PROTECTED; | ||||
} | } | ||||
/* | /* | ||||
* Per-process PaX flags. | |||||
*/ | |||||
p2->p_pax = p1->p_pax; | |||||
rwatson: Shouldn't this simply be between p_startcopy and p_endcopy so that it is automatically… | |||||
Not Done Inline ActionsYes, in progress. op: Yes, in progress. | |||||
/* | |||||
* p_limit is copy-on-write. Bump its refcount. | * p_limit is copy-on-write. Bump its refcount. | ||||
*/ | */ | ||||
lim_fork(p1, p2); | lim_fork(p1, p2); | ||||
pstats_fork(p1->p_stats, p2->p_stats); | pstats_fork(p1->p_stats, p2->p_stats); | ||||
PROC_UNLOCK(p1); | PROC_UNLOCK(p1); | ||||
PROC_UNLOCK(p2); | PROC_UNLOCK(p2); | ||||
▲ Show 20 Lines • Show All 517 Lines • Show Last 20 Lines |
Shouldn't this simply be between p_startcopy and p_endcopy so that it is automatically propagated?