]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE
authorConrad Meyer <cem@FreeBSD.org>
Tue, 3 Nov 2020 02:10:54 +0000 (02:10 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Tue, 3 Nov 2020 02:10:54 +0000 (02:10 +0000)
commiteaa5afcefabc3575437105b54fb31fc74eae4916
tree48aaa9f1d2823dc47209bbc812d266f2a77935d2
parent443d8a07dfa3fdd4379b4aac5f76700309d0a454
linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE

Proxy the flag to the roughly analogous FreeBSD procctl 'TRACE'.

TRACE-disabled processes are not coredumped, and Linux !DUMPABLE processes
can not be ptraced.  There are some additional semantics around ownership of
files in the /proc/[pid] pseudo-filesystem, which we do not attempt to
emulate correctly at this time.

Reviewed by: markj (earlier version)
Differential Revision: https://reviews.freebsd.org/D27015
sys/compat/linux/linux_misc.c
sys/compat/linux/linux_misc.h