Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2018 06:31:49 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337998 - in head/sys: compat/freebsd32 kern
Message-ID:  <201808180631.w7I6VnYP057635@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sat Aug 18 06:31:49 2018
New Revision: 337998
URL: https://svnweb.freebsd.org/changeset/base/337998

Log:
  getrandom(2) should not be restricted in capability mode.

Modified:
  head/sys/compat/freebsd32/capabilities.conf
  head/sys/kern/capabilities.conf

Modified: head/sys/compat/freebsd32/capabilities.conf
==============================================================================
--- head/sys/compat/freebsd32/capabilities.conf	Sat Aug 18 06:20:45 2018	(r337997)
+++ head/sys/compat/freebsd32/capabilities.conf	Sat Aug 18 06:31:49 2018	(r337998)
@@ -134,6 +134,7 @@ getpgrp
 getpid
 getppid
 getpriority
+getrandom
 getresgid
 getresuid
 getrlimit

Modified: head/sys/kern/capabilities.conf
==============================================================================
--- head/sys/kern/capabilities.conf	Sat Aug 18 06:20:45 2018	(r337997)
+++ head/sys/kern/capabilities.conf	Sat Aug 18 06:31:49 2018	(r337998)
@@ -308,6 +308,11 @@ getrusage
 getsid
 
 ##
+## Allow getrandom
+##
+getrandom
+
+##
 ## Allow querying socket state, subject to capability rights.
 ##
 ## XXXRW: getsockopt(2) may need more attention.



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