mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Inherit P2_PROTMAX_{ENABLE,DISABLE} across fork().
Thus, when using proccontrol(1) to disable implicit application of PROT_MAX within a process, child processes will inherit this setting. Discussed with: kib MFC with: r349609 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6325d2df9e
commit
2ffee5c1b2
1 changed files with 2 additions and 1 deletions
|
|
@ -465,7 +465,8 @@ do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *
|
|||
*/
|
||||
p2->p_flag = P_INMEM;
|
||||
p2->p_flag2 = p1->p_flag2 & (P2_ASLR_DISABLE | P2_ASLR_ENABLE |
|
||||
P2_ASLR_IGNSTART | P2_NOTRACE | P2_NOTRACE_EXEC | P2_TRAPCAP);
|
||||
P2_ASLR_IGNSTART | P2_NOTRACE | P2_NOTRACE_EXEC |
|
||||
P2_PROTMAX_ENABLE | P2_PROTMAX_DISABLE | P2_TRAPCAP);
|
||||
p2->p_swtick = ticks;
|
||||
if (p1->p_flag & P_PROFIL)
|
||||
startprofclock(p2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue