aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetmap/libnetmap.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2021-06-09 21:46:51 +0000
committerMark Johnston <markj@FreeBSD.org>2021-06-29 17:09:02 +0000
commitba5ed8109cc99cccd4eebb626225afc5eefa16b0 (patch)
tree84b1ca3bed4ea0a6c06a4d6f93a394ff142fa613 /lib/libnetmap/libnetmap.h
parentdac086497e50619b26d227de02b602f5350d7366 (diff)
libcasper: fix descriptors numbers
Casper services expect that the first 3 descriptors (stdin/stdout/stderr) will point to /dev/null. Which Casper will ensure later. The Casper services are forked from the original process. If the initial process closes one of those descriptors, Casper may reuse one of them for it on purpose. If this is the case, then renumarate the descriptors used by Casper to higher numbers. This is done already after the fork, so it doesn't break the parent process. Approved by: so Security: EN-21:19.libcasper PR: 255339 Reported by: Borja Marcos <borjam (at) sarenet.es> Tested by: jkim@ (cherry picked from commit aa310ebfba3d49a0b6b03a103b969731a8136a73) (cherry picked from commit 934e10b4a388b13c2bcd8fbac8cd8cc4a641b1b0)
Diffstat (limited to 'lib/libnetmap/libnetmap.h')
0 files changed, 0 insertions, 0 deletions