| 558 | } |
| 559 | |
| 560 | static int |
| 561 | stackgap_status(struct thread *td, struct proc *p, int *data) |
| 562 | { |
| 563 | PROC_LOCK_ASSERT(p, MA_OWNED); |
| 564 | |
| 565 | *data = (p->p_flag2 & P2_STKGAP_DISABLE) != 0 ? PROC_STACKGAP_DISABLE : |
| 566 | PROC_STACKGAP_ENABLE; |
| 567 | *data |= (p->p_flag2 & P2_STKGAP_DISABLE_EXEC) != 0 ? |
| 568 | PROC_STACKGAP_DISABLE_EXEC : PROC_STACKGAP_ENABLE_EXEC; |
| 569 | return (0); |
| 570 | } |
| 571 | |
| 572 | #ifndef _SYS_SYSPROTO_H_ |
| 573 | struct procctl_args { |
no outgoing calls
no test coverage detected