Let the cap_syslog capability inherit stdio descriptors.

Otherwise cap_openlog(LOG_PERROR) doesn't work.

Reviewed by:	oshogbo
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D18457
This commit is contained in:
Mark Johnston 2018-12-07 15:52:50 +00:00
parent fd52edaf70
commit 08c4a937a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341692

View File

@ -198,4 +198,4 @@ syslog_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin,
return (0);
}
CREATE_SERVICE("system.syslog", NULL, syslog_command, 0);
CREATE_SERVICE("system.syslog", NULL, syslog_command, CASPER_SERVICE_STDIO);