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

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);