aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_procctl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap.Konstantin Belousov2016-09-211-0/+38
| | | | | | | | | | | | | | | Both can be used to cause processes in capability mode to receive SIGTRAP when ENOTCAPABLE or ECAPMODE errors are returned from syscalls. Idea by: emaste Reviewed by: oshogbo (previous version), emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D7965 Notes: svn path=/head/; revision=306081
* If process becomes reaper (procctl(PROC_REAP_ACQUIRE)) while alreadyKonstantin Belousov2015-08-201-2/+0
| | | | | | | | | | | | | | | | having some children, the children' reaper is not reset to the parent. This allows for the situation where reaper has children but not descendands and the too strict asserts in the reap_status() fire. Remove the wrong asserts, add some clarification for the situation to the procctl(2) REAP_STATUS. Reported and tested by: feld Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=286975
* Reparenting done by debugger attach can leave reaper without directKonstantin Belousov2015-02-151-3/+5
| | | | | | | | | | | | children. Handle the situation instead asserting that it is impossible. Reported and tested by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=278795
* Return with the process locked, caller expects p still locked afterKonstantin Belousov2015-02-151-1/+1
| | | | | | | | | | | the call. Reported and tested by: bapt Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=278794
* Add procctl(2) PROC_TRACE_CTL command to enable or disable debuggerKonstantin Belousov2015-01-181-1/+78
| | | | | | | | | | | | | | attachment to the process. Note that the command is not intended to be a security measure, rather it is an obfuscation feature, implemented for parity with other operating systems. Discussed with: jilles, rwatson Man page fixes by: rwatson Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=277322
* Add missed break.Konstantin Belousov2014-12-161-0/+1
| | | | | | | | | CID: 1258587 Sponsored by: The FreeBSD Foundation MFC after: 20 days Notes: svn path=/head/; revision=275821
* Add a facility for non-init process to declare itself the reaper ofKonstantin Belousov2014-12-151-0/+460
the orphaned descendants. Base of the API is modelled after the same feature from the DragonFlyBSD. Requested by: bapt Reviewed by: jilles (previous version) Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Notes: svn path=/head/; revision=275800