From owner-svn-src-all@freebsd.org Sat Aug 18 06:31:50 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8FAF10872DC; Sat, 18 Aug 2018 06:31:50 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53EA684502; Sat, 18 Aug 2018 06:31:50 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3538113C7B; Sat, 18 Aug 2018 06:31:50 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7I6Vo8r057637; Sat, 18 Aug 2018 06:31:50 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7I6VnYP057635; Sat, 18 Aug 2018 06:31:49 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201808180631.w7I6VnYP057635@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Sat, 18 Aug 2018 06:31:49 +0000 (UTC) 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 X-SVN-Group: head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: in head/sys: compat/freebsd32 kern X-SVN-Commit-Revision: 337998 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2018 06:31:50 -0000 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.