opnsense-src/lib/libcasper
Mariusz Zaborski 934e10b4a3 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.

PR:		255339
Reported by:	Borja Marcos <borjam (at) sarenet.es>
Tested by:	jkim@

(cherry picked from commit aa310ebfba)
2021-06-15 20:14:43 +02:00
..
libcasper libcasper: fix descriptors numbers 2021-06-15 20:14:43 +02:00
services cap_sysctl.3: Fix bugs in the example 2021-05-05 11:01:56 -04:00
tests TESTSDIR isn't required; remove it 2017-08-13 01:08:37 +00:00
Makefile libcasper/services: include <src.opts.mk> to hook tests to build 2019-10-23 01:50:41 +00:00
Makefile.inc Introduce caspermocks. 2017-10-28 19:23:57 +00:00