From owner-svn-src-all@freebsd.org Thu Jun 4 18:19:17 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A51E332C12E; Thu, 4 Jun 2020 18:19:17 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49dDZF40Kzz4TN1; Thu, 4 Jun 2020 18:19:17 +0000 (UTC) (envelope-from kevans@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 8479B2355F; Thu, 4 Jun 2020 18:19:17 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 054IJH3t085254; Thu, 4 Jun 2020 18:19:17 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 054IJH4D085223; Thu, 4 Jun 2020 18:19:17 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <202006041819.054IJH4D085223@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Thu, 4 Jun 2020 18:19:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361800 - head X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head X-SVN-Commit-Revision: 361800 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.33 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: Thu, 04 Jun 2020 18:19:17 -0000 Author: kevans Date: Thu Jun 4 18:19:16 2020 New Revision: 361800 URL: https://svnweb.freebsd.org/changeset/base/361800 Log: RELNOTES and UPDATING: Document the new policy on read(2) of dirfd These changes have been completely flushed as of r361799; note it. Modified: head/RELNOTES head/UPDATING Modified: head/RELNOTES ============================================================================== --- head/RELNOTES Thu Jun 4 18:17:25 2020 (r361799) +++ head/RELNOTES Thu Jun 4 18:19:16 2020 (r361800) @@ -10,8 +10,17 @@ newline. Entries should be separated by a newline. Changes to this file should not be MFCed. -r361238: - ZFS will now reject read(2) of a dirfd with EISDIR. +r361238, r361798, r361799: + ZFS will now unconditionally reject read(2) of a directory with EISDIR. + Additionally, read(2) of a directory is now rejected with EISDIR by + default and may be re-enabled for non-ZFS filesystems that allow it with + the sysctl(8) MIB 'security.bsd.allow_read_dir'. + + Aliases for grep to default to '-d skip' may be desired if commonly + non-recursively grepping a list that includes directories and the + possibility of EISDIR errors in stderr is not tolerable. Example + aliases, commented out, have been installed in /root/.cshrc and + /root/.shrc. r361066: Add exec.prepare and exec.release hooks for jail(8) and jail.conf(5). Modified: head/UPDATING ============================================================================== --- head/UPDATING Thu Jun 4 18:17:25 2020 (r361799) +++ head/UPDATING Thu Jun 4 18:19:16 2020 (r361800) @@ -26,6 +26,18 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20200604: + read(2) of a directory fd is now rejected by default. root may + re-enable it for system root only on non-ZFS filesystems with the + security.bsd.allow_read_dir sysctl(8) MIB if + security.bsd.suser_enabled=1. + + It may be advised to setup aliases for grep to default to `-d skip` if + commonly non-recursively grepping a list that includes directories and + the potential for the resulting stderr output is not tolerable. Example + aliases are now installed, commented out, in /root/.cshrc and + /root/.shrc. + 20200523: Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have been upgraded to 10.0.1. Please see the 20141231 entry below for