opnsense-src/lib/libcasper/services
Jason A. Harmening f048354550 r341692 changed cap_syslog(3) to preserve the stdio descriptors inherited
from its parent so that LOG_PERROR would work.  However, this caused
dhclient(8)'s stdio streams to remain open across daemonization, breaking
the ability to capture its foreground output as done in netconfig_ipv4.

Fix this by reverting r341692 and instead passing the parent's stderr
descriptor as an argument to cap_openlog() only when LOG_PERROR is specified
in logopt.

PR:	234514
Suggested by:	markj
Reported by:	Shawn Webb
Reviewed by:	markj, oshogbo
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D18989
2019-02-06 04:36:28 +00:00
..
cap_dns libcasper: provide compatibility with the old version of service 2018-11-19 17:22:52 +00:00
cap_fileargs libcasper: do not fail if Capsicum is not avilable 2018-11-30 19:27:14 +00:00
cap_grp libcasper: using explicit_bzero in cap_grp service 2018-11-04 19:43:59 +00:00
cap_pwd [libcasper] Use explicit_bzero instead of memset to clear pwd struct 2018-06-26 19:57:47 +00:00
cap_random nv was moved to the 9 section. 2018-02-26 19:08:27 +00:00
cap_sysctl Fix reference to man page in Makefile. 2018-03-18 17:27:37 +00:00
cap_syslog r341692 changed cap_syslog(3) to preserve the stdio descriptors inherited 2019-02-06 04:36:28 +00:00
tests DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
Makefile libcasper: introduce cap_fileargs service 2018-11-12 17:40:47 +00:00
Makefile.inc