Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2018 15:52:50 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341692 - head/lib/libcasper/services/cap_syslog
Message-ID:  <201812071552.wB7Fqoau056347@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Dec  7 15:52:50 2018
New Revision: 341692
URL: https://svnweb.freebsd.org/changeset/base/341692

Log:
  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

Modified:
  head/lib/libcasper/services/cap_syslog/cap_syslog.c

Modified: head/lib/libcasper/services/cap_syslog/cap_syslog.c
==============================================================================
--- head/lib/libcasper/services/cap_syslog/cap_syslog.c	Fri Dec  7 15:48:42 2018	(r341691)
+++ head/lib/libcasper/services/cap_syslog/cap_syslog.c	Fri Dec  7 15:52:50 2018	(r341692)
@@ -198,4 +198,4 @@ syslog_command(const char *cmd, const nvlist_t *limits
 	return (0);
 }
 
-CREATE_SERVICE("system.syslog", NULL, syslog_command, 0);
+CREATE_SERVICE("system.syslog", NULL, syslog_command, CASPER_SERVICE_STDIO);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812071552.wB7Fqoau056347>