Lines Matching refs:p_flag2

64 			p->p_flag2 |= P2_INHERIT_PROTECTED;  in protect_setchild()
67 p->p_flag2 &= ~P2_INHERIT_PROTECTED; in protect_setchild()
313 if ((w->target->p_flag2 & P2_WEXIT) == 0) in reap_kill_proc_work()
336 if ((p2->p_flag2 & P2_WEXIT) != 0) { in reap_kill_sched()
363 if ((p2->p_flag2 & P2_WEXIT) == 0) { in reap_kill_children()
431 (atomic_load_int(&p2->p_flag2) & in reap_kill_subtree_once()
437 (p2->p_flag2 & P2_WEXIT) == 0) { in reap_kill_subtree_once()
449 p2->p_flag2 |= P2_REAPKILLED; in reap_kill_subtree_once()
465 if ((p2->p_flag2 & P2_WEXIT) == 0) { in reap_kill_subtree_once()
467 p2->p_flag2 |= P2_REAPKILLED; in reap_kill_subtree_once()
505 if ((td->td_proc->p_flag2 & P2_WEXIT) != 0) { in reap_kill_subtree()
517 p2->p_flag2 &= ~P2_REAPKILLED; in reap_kill_subtree()
603 p->p_flag2 &= ~(P2_NOTRACE | P2_NOTRACE_EXEC); in trace_ctl()
606 p->p_flag2 |= P2_NOTRACE_EXEC | P2_NOTRACE; in trace_ctl()
609 if ((p->p_flag2 & P2_NOTRACE_EXEC) != 0) { in trace_ctl()
610 KASSERT((p->p_flag2 & P2_NOTRACE) != 0, in trace_ctl()
614 p->p_flag2 &= ~P2_NOTRACE_EXEC; in trace_ctl()
616 p->p_flag2 |= P2_NOTRACE; in trace_ctl()
631 if ((p->p_flag2 & P2_NOTRACE) != 0) { in trace_status()
653 p->p_flag2 |= P2_TRAPCAP; in trapcap_ctl()
656 p->p_flag2 &= ~P2_TRAPCAP; in trapcap_ctl()
670 *status = (p->p_flag2 & P2_TRAPCAP) != 0 ? PROC_TRAPCAP_CTL_ENABLE : in trapcap_status()
685 p->p_flag2 |= P2_NO_NEW_PRIVS; in no_new_privs_ctl()
693 *(int *)data = (p->p_flag2 & P2_NO_NEW_PRIVS) != 0 ? in no_new_privs_status()
708 p->p_flag2 &= ~P2_PROTMAX_DISABLE; in protmax_ctl()
709 p->p_flag2 |= P2_PROTMAX_ENABLE; in protmax_ctl()
712 p->p_flag2 |= P2_PROTMAX_DISABLE; in protmax_ctl()
713 p->p_flag2 &= ~P2_PROTMAX_ENABLE; in protmax_ctl()
716 p->p_flag2 &= ~(P2_PROTMAX_ENABLE | P2_PROTMAX_DISABLE); in protmax_ctl()
729 switch (p->p_flag2 & (P2_PROTMAX_ENABLE | P2_PROTMAX_DISABLE)) { in protmax_status()
756 p->p_flag2 &= ~P2_ASLR_DISABLE; in aslr_ctl()
757 p->p_flag2 |= P2_ASLR_ENABLE; in aslr_ctl()
760 p->p_flag2 |= P2_ASLR_DISABLE; in aslr_ctl()
761 p->p_flag2 &= ~P2_ASLR_ENABLE; in aslr_ctl()
764 p->p_flag2 &= ~(P2_ASLR_ENABLE | P2_ASLR_DISABLE); in aslr_ctl()
778 switch (p->p_flag2 & (P2_ASLR_ENABLE | P2_ASLR_DISABLE)) { in aslr_status()
818 if ((p->p_flag2 & P2_STKGAP_DISABLE) != 0) in stackgap_ctl()
822 p->p_flag2 |= P2_STKGAP_DISABLE; in stackgap_ctl()
832 p->p_flag2 &= ~P2_STKGAP_DISABLE_EXEC; in stackgap_ctl()
835 p->p_flag2 |= P2_STKGAP_DISABLE_EXEC; in stackgap_ctl()
852 d = (p->p_flag2 & P2_STKGAP_DISABLE) != 0 ? PROC_STACKGAP_DISABLE : in stackgap_status()
854 d |= (p->p_flag2 & P2_STKGAP_DISABLE_EXEC) != 0 ? in stackgap_status()
874 p->p_flag2 |= P2_WXORX_DISABLE; in wxmap_ctl()
889 p->p_flag2 |= P2_WXORX_ENABLE_EXEC; in wxmap_ctl()
909 if ((p->p_flag2 & P2_WXORX_DISABLE) != 0) in wxmap_status()
911 if ((p->p_flag2 & P2_WXORX_ENABLE_EXEC) != 0) in wxmap_status()
958 p->p_flag2 &= ~(P2_LOGSIGEXIT_CTL | P2_LOGSIGEXIT_ENABLE); in logsigexit_ctl()
961 p->p_flag2 |= P2_LOGSIGEXIT_CTL | P2_LOGSIGEXIT_ENABLE; in logsigexit_ctl()
964 p->p_flag2 |= P2_LOGSIGEXIT_CTL; in logsigexit_ctl()
965 p->p_flag2 &= ~P2_LOGSIGEXIT_ENABLE; in logsigexit_ctl()
978 if ((p->p_flag2 & P2_LOGSIGEXIT_CTL) == 0) in logsigexit_status()
980 else if ((p->p_flag2 & P2_LOGSIGEXIT_ENABLE) != 0) in logsigexit_status()