From nobody Fri Mar 22 13:33:07 2024 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 4V1NYw1khWz5DxB5; Fri, 22 Mar 2024 13:33:08 +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 4V1NYv6ZX1z45QM; Fri, 22 Mar 2024 13:33:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711114387; 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=ZUeVuKr/9y7kMEFWkUY8ksR684rSVUECSwCarYYzHlA=; b=w30rFQDO1EfxtqKgUfxltgVgOk+wErJ7JxlpqOuBmIoIjj+M97S57Gq3Bzt74hDEBw+i3Z /hiMKYT7yTnKyDrQKPf857T4GLKrNajks3IdhLIowKHNc1e0ZPmoRFJ1gmRioau0t0HUMf q/gRRVHAPLQmUZf/CPlXvamvSOU3D8JJTXE2ZxL+3/rxIqVQx2ChPXN8TYgDqXGBgpBXkx CXjSQa2y8zIKMC6ivBn+Le93Od6uV50cS2irUzXuskE6dDZpG6zfeeuuNexdJvyQXfBChb PrsGWagvfvF71+Aj0wtLG0fwYKOgkTnp9JymKVLd0+kNSm911USaGmvuonkq3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711114387; a=rsa-sha256; cv=none; b=gY2VSAwDtZdZwtQ13HN/LTBsQpGfFmtkaiWFWwzjzmzhWSWaIOpbWNh368TkVzruL8nex6 fDDyTVz57ka+miQw/OO1fB6cr6cjlniP+ri0Uaq9/6pVS6ry5PkdRPSG5fzi10RYicdVPH vk0ilc8+/BU0DKiTdCgm83G1EJz6+yTFUthKllbnjdDxNNj7E0hEHZVvII/+UzihxQss8y GwJ++Mh+BRZRWIrBxinnyjPpf0HxFpNx6rDwwISx7U0V/xhrbYL4uBOPOjxUE5VAxEGqt0 EM2Bh/4QEE5e/b9W6YUO5T3TnZ2B6DsZBqrxQdpkOBY2wcCQC40K/eKkSlb93g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711114387; 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=ZUeVuKr/9y7kMEFWkUY8ksR684rSVUECSwCarYYzHlA=; b=OWkVX8xU8nrDR4eIXV+SkC9yjvaU2xbIWqUfiz+ogWZEYYkNjJeaI64JJBrKfiu6koh2wD /8OUKUn9SnDoiarF2DJhWyiepwqLyvvEzCgQonBUAsX9tYmWqpGBtulKczbeZ7JOFCprEv KHYGAU5uzuwm96cUiW8UlvzyqAXRWUl1bZ68FV2kmU0vYCAIm2KdIa0CVjHMSBW/i4wFB3 gOQpiHw0WwgWboQdJulKtOwfIyz2MTkQWtRn0F0GlDRQe1CkGJI1xni/lOMs3MPkQpnQAf ssHuGXxfUooKrFvgaS9X7kkQEVAq14pv8m09oQ0+aplMDYOo4+HmnIOI0r80hw== 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 4V1NYv69ckz1KWm; Fri, 22 Mar 2024 13:33:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42MDX7KG002826; Fri, 22 Mar 2024 13:33:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42MDX7vB002823; Fri, 22 Mar 2024 13:33:07 GMT (envelope-from git) Date: Fri, 22 Mar 2024 13:33:07 GMT Message-Id: <202403221333.42MDX7vB002823@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 5f527dbe41b8 - stable/14 - cat: add CAP_SEEK capability 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 5f527dbe41b804d3fc6a789c5def25b25a44a3a0 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5f527dbe41b804d3fc6a789c5def25b25a44a3a0 commit 5f527dbe41b804d3fc6a789c5def25b25a44a3a0 Author: Mariusz Zaborski AuthorDate: 2023-09-28 13:20:47 +0000 Commit: Ed Maste CommitDate: 2024-03-22 13:30:32 +0000 cat: add CAP_SEEK capability The copy_file_range might require that. Reviewed by: emaste, theraven, kib, markj Differential Revision: https://reviews.freebsd.org/D41967 (cherry picked from commit 64c6327738fc24bb34b9f40ff1c223ab460ef637) --- bin/cat/cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 1468faf494a3..c69bbc4911cb 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -155,7 +155,7 @@ init_casper(int argc, char *argv[]) err(EXIT_FAILURE, "unable to create Casper"); fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0, - cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL), + cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL | CAP_SEEK), FA_OPEN | FA_REALPATH); if (fa == NULL) err(EXIT_FAILURE, "unable to create fileargs");