From nobody Thu Apr 14 19:13:35 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 24CDB1B558AD; Thu, 14 Apr 2022 19:13:36 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KfTdX0VW7z4fRn; Thu, 14 Apr 2022 19:13:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649963616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NboNxEJgQewxoEyXS3b5S3r1yd9zE7q5bW+Y3ARe8Gk=; b=KQSnpor6igYxAIsVeCPZ6vRa/zn3H8Ndk1rERWdRyK8YlYaqDdirbj8u/Rmj06IZ8SNQ50 yCBeYDpEdOWMMRnioMoq9UEHQc+9V7L8tNF2lv6BpeHUIi6s35epeL+LnO+ewr0kVwyN+O isZEpG1GaoKjcAJMhqMztAiZD/DmJxnG9kkogCl+0+KAJqpLgPMjyqJelbHwljLWBmZkNx BXXGOa9AUlyg9jxAO6J/wz/Aon04wSCE/3Y0i8CTG5PrI5V0vLd4yWl1SdlVulaBFimd3M 7L24D6EgOsWkOFk6ecGX890Qum49pQJ8o+BdVlBncjTNLTYh2qeepvh6mw5Dgg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E609226533; Thu, 14 Apr 2022 19:13:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23EJDZr0014108; Thu, 14 Apr 2022 19:13:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23EJDZZB014107; Thu, 14 Apr 2022 19:13:35 GMT (envelope-from git) Date: Thu, 14 Apr 2022 19:13:35 GMT Message-Id: <202204141913.23EJDZZB014107@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 52a1d90c8bfe - main - Allow posix_fadvise in capability mode List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52a1d90c8bfe80a15e71a1a2bd7b9407949741d6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649963616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NboNxEJgQewxoEyXS3b5S3r1yd9zE7q5bW+Y3ARe8Gk=; b=UJz8oXQ/B0kP1cKazlR9v3oAOglWIutT2DW8GzvZUtIymCpd5AdNhUMnPat5uohawfF7kv K80wGdny9bJnFl+L3U+hLhjecBpEfi4o47gNw9ia3m0BlVgSqij27OBjhlzG1JtRcWsdCz 0GxryoZa46QR/4hx/+/WFvpOIzJUlUko9JHxRxWrsRcgEAC74z+vhZwffjG+75bL5UsgzT Q8nDS6OJ0POzqeIQc+oB11mqvbS/okxyZnj2fXZliJNVZovxoQQUVgW6ssZjzFuA7AXXrV 0AlGjFZ7g5MdEtmSimlyEWUPBdLT1MLpUjJJnWmXy57VoEcqfp4ydVC+w1Wvrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649963616; a=rsa-sha256; cv=none; b=sXu4ltemw26YkrT7DVdPfVhs4ccPVNhRptrmgtLi8bcTgYuxY1HImhaUor+8pfl6zsG3zm mrkqMTsj8l84BNF3ZOTHvHGHq/6Qk0nNl3j0mH2tmdhkvpyNyFNYN83Z5KHBPa1Xih9yiP fnRvb6CUNhiVCBrpQUCYHWiCmdRSTCW8CghqLE/8GdvJ1sZFxo2fcVl6h4V9FXBmNKfdPT rYJ8WXwQbYno9iRiWZU3VkBa6EN0jmSEI+iLPLJjfyB9umF7NIj+Y1KK3SQek9WDXwgEn5 A1DoG7O7/3//ttw3SAoVxZfUoOSGulbncaacrsaVWsppSmEl2x4z4PqGQUeiNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=52a1d90c8bfe80a15e71a1a2bd7b9407949741d6 commit 52a1d90c8bfe80a15e71a1a2bd7b9407949741d6 Author: Ed Maste AuthorDate: 2022-04-13 22:36:03 +0000 Commit: Ed Maste CommitDate: 2022-04-14 19:11:21 +0000 Allow posix_fadvise in capability mode posix_fadvise operates only on a provided fd. Noted by Mathieu in review D34761. No new CAP_ rights are added for posix_fadvise(), as 'advice' in general only influences when I/O happens; the fd must have existing CAP_ rights for actual data access. Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34903 --- sys/kern/syscalls.master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index fda91e9c7d6f..c6dce5366219 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -2941,7 +2941,7 @@ off_t len ); } -531 AUE_POSIX_FADVISE STD { +531 AUE_POSIX_FADVISE STD|CAPENABLED { int posix_fadvise( int fd, off_t offset,