svn commit: r324414 - head/lib/libcapsicum

Edward Tomasz Napierala trasz at FreeBSD.org
Sun Oct 8 17:29:45 UTC 2017


Author: trasz
Date: Sun Oct  8 17:29:43 2017
New Revision: 324414
URL: https://svnweb.freebsd.org/changeset/base/324414

Log:
  capsicum_helpers: Add EVENT to default stdio rights set
  
  Without it, calling caph_limit_stdio(3) breaks Irssi.
  
  Reviewed by:	oshogbo
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D12622

Modified:
  head/lib/libcapsicum/capsicum_helpers.h

Modified: head/lib/libcapsicum/capsicum_helpers.h
==============================================================================
--- head/lib/libcapsicum/capsicum_helpers.h	Sun Oct  8 17:21:16 2017	(r324413)
+++ head/lib/libcapsicum/capsicum_helpers.h	Sun Oct  8 17:29:43 2017	(r324414)
@@ -50,7 +50,8 @@ caph_limit_stream(int fd, int flags)
 	cap_rights_t rights;
 	unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODTYPE };
 
-	cap_rights_init(&rights, CAP_FCNTL, CAP_FSTAT, CAP_IOCTL, CAP_SEEK);
+	cap_rights_init(&rights, CAP_EVENT, CAP_FCNTL, CAP_FSTAT,
+	    CAP_IOCTL, CAP_SEEK);
 
 	if ((flags & CAPH_READ) != 0)
 		cap_rights_set(&rights, CAP_READ);


More information about the svn-src-all mailing list