aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/procctl.2
Commit message (Collapse)AuthorAgeFilesLines
* procctl.2: Editing passJohn Baldwin2024-12-271-168/+244
| | | | | | | | | | | | | | | - Add some missing .Pp macros after the end of literal blocks and some lists to ensure there is a blank line before the following text. - Use an indent of Ds for nested lists to reduce excessive indentation and make the bodies of the nested list items easier to read. - Various and sundry rewordings and clarifications. Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D47782 (cherry picked from commit 8277c790179304159c2e4dcb1d99552518d5be8e)
* manuals: Misc macro typosGraham Percival2024-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were reported by `mandoc -T lint` as ERROR: skipping unknown macro When these pages were rendered with `man`, the "unknown macro" meant that the entire line was omitted from the output. Obvious typos in: lib/libsys/swapon.2 lib/libsys/procctl.2 share/man/man9/firmware.9 lib/libcasper/services/cap_net/cap_net.3: 'mode' describes a function argument. lib/libsys/statfs.2: there's no .Tm command ("trademark?"), and .Tn ("tradename") is deprecated, so remove the macro entirely. usr.sbin/mfiutil/mfiutil.8: man was interpreting '/dev/' as a macro (which it didn't recognize). share/man/man4/qat.4: same issue as above, but with '0'. In this case, given the context of the previous line, rewriting as "Value '0'" seemed more appropriate. usr.sbin/mlx5tool/mlx5tool.8: typo in .Xr Signed-off-by: Graham Percival <gperciva@tarsnap.com> Sponsored by: Tarsnap Backup Inc. Reviewed by: concussious, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1417 (cherry picked from commit 2878d99dfcfbdd7a415a7f31cf95fbd53fc8e581)
* manuals: Fix errors in .2 pagesGraham Percival2024-12-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | These were reported by `mandoc -T lint ...` as errors. fhlink.2, fhreadlink.2: remove unneeded block closing. getfh.2, procctl.2: add necessary block closing. ptrace.2: -width only takes one argument. swapon.2: <sys/vmparam.h> and <vm/swap_pager.h> weren't being displayed, because .It is for a list item whereas .In is for included files. Also, we want a blank line between <sys/ > headers and the other one. Signed-off-by: Graham Percival <gperciva@tarsnap.com> PR: 281597 Reviewed by: mhorne Sponsored by: Tarsnap Backup Inc. (cherry picked from commit 650056363baddb83c61c85b0539ee536f3d4b56c)
* procctl.2: improve phrasing for ASLR disableBrooks Davis2023-11-131-3/+3
| | | | | | | | Reported by: jrtc27 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D42364 (cherry picked from commit 4894205482555447c6b3372598c7589a66596724)
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit fa9896e082a1)
* procctl: add state flags to PROC_REAP_GETPIDS reportsVal Packett2023-04-231-2/+8
| | | | (cherry picked from commit 77f0e198d9134b6ca2650d3a84d7db2d786ec0c0)
* procctl: actually require debug privileges over targetKonstantin Belousov2021-10-261-0/+8
| | | | (cherry picked from commit f5bb6e5a6d488740e451ad4acd82a70b95e786cd)
* procctl(2): add consistent shortcut P_ID:0 as curprocKonstantin Belousov2021-10-261-0/+2
| | | | (cherry picked from commit f833ab9dd187328306fa1601330fbc8332392abe)
* procctl(2): Add PROC_WXMAP_CTL/STATUSKonstantin Belousov2021-09-241-1/+63
| | | | (cherry picked from commit 796a8e1ad1ae3f7b8e4c9f97bebbef5d7d5a2c16)
* procctl(2): add PROC_NO_NEW_PRIVS_CTL, PROC_NO_NEW_PRIVS_STATUSEdward Tomasz Napierala2021-09-241-1/+26
| | | | (cherry picked from commit db8d680ebe9b12c7d9e0eb8bf9940fcef709f5ec)
* procctl(2): consistently refer to the last agrument as 'data'Allan Jude2020-07-111-5/+6
| | | | | | | | | | | | | | Some older references called it 'arg' Also fix a syntax error that was underlining an entire sentence. PR: 247386 Reported by: Paul Floyd <paulf@free.fr>, PauAmma (research) MFC after: 2 weeks Sponsored by: Klara Inc. Notes: svn path=/head/; revision=363104
* procctl(2): document PROC_KPTIKonstantin Belousov2020-06-131-1/+42
| | | | | | | | | | Reviewed by: bcr Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25258 Notes: svn path=/head/; revision=362151
* procctl(2): consistently refer to the data pointer as 'data'.Konstantin Belousov2020-06-131-6/+6
| | | | | | | | | | Reviewed by: bcr Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25258 Notes: svn path=/head/; revision=362150
* procctl(2): correct a minor cut-n-pastoKyle Evans2020-05-161-2/+2
| | | | | | | | | | This is clearly describing PROC_PROTMAX_FORCE_DISABLE, rather than PROC_ASL_FORCE_DISABLE. Submitted by: sigsys@gmail.com Notes: svn path=/head/; revision=361105
* Fix a typoMateusz Piotrowski2020-04-241-2/+2
| | | | | | | | Reported by: pstef MFC after: 2 days Notes: svn path=/head/; revision=360284
* Add procctl(PROC_STACKGAP_CTL)Konstantin Belousov2019-09-031-1/+62
| | | | | | | | | | | | | | It allows a process to request that stack gap was not applied to its stacks, retroactively. Also it is possible to control the gaps in the process after exec. PR: 239894 Reviewed by: alc Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D21352 Notes: svn path=/head/; revision=351773
* Control implicit PROT_MAX() using procctl(2) and the FreeBSD noteKonstantin Belousov2019-07-021-1/+44
| | | | | | | | | | | | | | | | | feature bit. In particular, allocate the bit to opt-out the image from implicit PROTMAX enablement. Provide procctl(2) verbs to set and query implicit PROTMAX handling. The knobs mimic the same per-image flag and per-process controls for ASLR. Reviewed by: emaste, markj (previous version) Discussed with: brooks Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D20795 Notes: svn path=/head/; revision=349609
* Typo.Konstantin Belousov2019-06-281-1/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=349511
* .Xr protect(1) and proccontrol(1) from procctl(2).Edward Tomasz Napierala2019-04-091-1/+3
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=346048
* procctl(2): document ASLR knobs.Konstantin Belousov2019-02-261-0/+45
| | | | | | | | | Reviewed by: 0mp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D19308 Notes: svn path=/head/; revision=344593
* procctl(2): fix -width parameter to .Bl.Konstantin Belousov2019-02-261-10/+10
| | | | | | | | | | | | | According to 0mp, macros are not expanded in the argument provided to -width. Use plain identifiers for width specification. Noted and reviewed by: 0mp Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D19308 Notes: svn path=/head/; revision=344592
* PROC_PDEATHSIG_CTL will appear first in 11.2.Konstantin Belousov2018-05-121-2/+2
| | | | | | | | | Submitted by: Thomas Munro MFC after: 3 days Differential revision: https://reviews.freebsd.org/D15399 Notes: svn path=/head/; revision=333521
* Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GETKonstantin Belousov2018-04-201-6/+6
| | | | | | | | | | | | -> PROC_PDEATHSIG_STATUS for consistency with other procctl(2) operations names. Requested by: emaste Sponsored by: The FreeBSD Foundation MFC after: 13 days Notes: svn path=/head/; revision=332825
* Add PROC_PDEATHSIG_SET to procctl interface.Konstantin Belousov2018-04-181-1/+46
| | | | | | | | | | | | | Allow processes to request the delivery of a signal upon death of their parent process. Supposed consumer of the feature is PostgreSQL. Submitted by: Thomas Munro Reviewed by: jilles, mjg MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15106 Notes: svn path=/head/; revision=332740
* Kill all descendants of the reaper, even if they are descendants of aKonstantin Belousov2017-11-231-2/+5
| | | | | | | | | | | | | | | | subordinate reaper. Also, mark reapers when listing pids. Reported by: Michael Zuo <muh.muhten@gmail.com> PR: 223745 Reviewed by: bapt Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D13183 Notes: svn path=/head/; revision=326122
* More trap_enotcap spelling fixes.Maxim Konovalov2017-03-161-2/+2
| | | | | | | | PR: 217839 Submitted by: tobik Notes: svn path=/head/; revision=315413
* Editing fixes for r306257, documentation for trapcap.Konstantin Belousov2016-09-271-7/+11
| | | | | | | | | | | | Suggested by: wblock Discussed with: jilles Reviewed by: cem (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D8023 Notes: svn path=/head/; revision=306366
* Document r306081, i.e. procctl(PROC_TRAPCAP) and sysctl kern.trap_enocap.Konstantin Belousov2016-09-231-2/+63
| | | | | | | | | | Reviewed by: cem Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D8003 Notes: svn path=/head/; revision=306257
* Editing pass on procctl.2Benjamin Kaduk2015-08-211-26/+26
| | | | | | | | | | | | | Spell "descendant" correctly. Grammar fixes. Use correct width argument to Bl. Use Po and Pc to avoid leaving a dangling '(' on the end of a line. Notes: svn path=/head/; revision=286978
* If process becomes reaper (procctl(PROC_REAP_ACQUIRE)) while alreadyKonstantin Belousov2015-08-201-2/+6
| | | | | | | | | | | | | | | | 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
* Reassign copyright statements on several files from AdvancedJohn Baldwin2015-04-231-1/+1
| | | | | | | | | | Computing Technologies LLC to Hudson River Trading LLC. Approved by: Hudson River Trading LLC (who owns ACT LLC) MFC after: 1 week Notes: svn path=/head/; revision=281887
* 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
* Various mdoc fixes and a few EOL whitespace removals.Christian Brueffer2014-12-211-1/+1
| | | | | | | Found with: mandoc -Tlint Notes: svn path=/head/; revision=276006
* Bump Dd for r275846Bryan Drewery2014-12-171-1/+1
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=275847
* Add some additional clarification and fix a few gammer nits.Kirk McKusick2014-12-171-58/+66
| | | | | | | | Reviewed by: kib MFC after: 3 weeks Notes: svn path=/head/; revision=275846
* Add a facility for non-init process to declare itself the reaper ofKonstantin Belousov2014-12-151-3/+212
| | | | | | | | | | | | | | 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
* Fix a typo.Mark Johnston2014-07-091-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=268446
* mdoc: fix several uses of the Fx macro to point to actual releases.Ulrich Spörlein2014-01-281-1/+1
| | | | | | | Found by: make manlint Notes: svn path=/head/; revision=261249
* Minor mdoc improvements.Joel Dahl2013-09-191-4/+4
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=255711
* Extend the support for exempting processes from being killed when swap isJohn Baldwin2013-09-191-0/+142
exhausted. - Add a new protect(1) command that can be used to set or revoke protection from arbitrary processes. Similar to ktrace it can apply a change to all existing descendants of a process as well as future descendants. - Add a new procctl(2) system call that provides a generic interface for control operations on processes (as opposed to the debugger-specific operations provided by ptrace(2)). procctl(2) uses a combination of idtype_t and an id to identify the set of processes on which to operate similar to wait6(). - Add a PROC_SPROTECT control operation to manage the protection status of a set of processes. MADV_PROTECT still works for backwards compatability. - Add a p_flag2 to struct proc (and a corresponding ki_flag2 to kinfo_proc) the first bit of which is used to track if P_PROTECT should be inherited by new child processes. Reviewed by: kib, jilles (earlier version) Approved by: re (delphij) MFC after: 1 month Notes: svn path=/head/; revision=255708