--- - branch: MAIN date: Tue May 29 23:34:18 UTC 2018 files: - new: '1.43' old: '1.42' path: src/sys/kern/sys_ptrace_common.c pathrev: src/sys/kern/sys_ptrace_common.c@1.43 type: modified id: 20180529T233418Z.c0faddfa41565b3b70bef0f13ea9014ff199206f log: | Harden PT_ATTACH in ptrace(2) Don't allow to PT_ATTACH from a vfork(2)ed child (before exec(3)/_exit(3)) to its parent. Return error with EPERM errno. This scenario does not have a purpose and there is no clear picture how to route signals. Sponsored by module: src subject: 'CVS commit: src/sys/kern' unixtime: '1527636858' user: kamil