From nobody Wed Jun 24 16:04:44 2026 X-Original-To: dev-commits-src-main@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 4glmwh4Vnwz6jQ30; Wed, 24 Jun 2026 16:04:52 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glmwh3ynZz3GPt; Wed, 24 Jun 2026 16:04:52 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782317092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UD90xg+jrk9966ajUp24hohUjRA/+LE+FdPVkBDgyHQ=; b=gx5GIWQ04dTosLmRsTZeu9gtERPlNa8MbGW/FPdZGxEwEOU5wnj2cBv9/qAx6TiWBI3N5T PySmQixtWEjZFq+byp8MZYea0+tMDJEr7a4uD6LUstEO6cITd8ZaEOLYlbhX/bdelxym7N 4SfJ2pPYDhmHosdG1rKW8dNQZHZDvLTefvYuwylcFDFcRBgbeQoMtipzTEkJeOhilXd93z McnyLasYYoO5tBlJKwlJZ/wXVz+x2IAuOE+5uVJn32omYGRYJzPd3fYHOjltFtOboG3Pzf Oyr3gscTLsmHjAAx+1cBGzvFrFNxchsZ3e8zDYLfwA4/gmpjpUu3wnQIT0a02g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782317092; a=rsa-sha256; cv=none; b=tlAAYSp1o/5yopse47gHl1RbLui/3oGUdvbgRqJXKwZmRW2L9JkV9FaiR3NGgumtfD484M Zht/SHi02+FwvuKb8wWhWhaSFPh0hxNiIJnr4OZIYy7+jiiaCQ2d4+xE7OhHmQspIhlQyt Q4SZeCPKB1Q8G2m0xrTx+YTjwKrmeVPXhVr1Bd/ivaYUGipNPaYadlU+xQEL4qr19kdg13 DLC8sMb7Nc06ZPhHBdx1aQQV9D/bC2beotqwO3RFlA+1ikAzY5yv5i8YEhg+cLA3ccrUer t6d9qjDScPdtbcv6A8P6aj18gUoV1J5VChG5o+Sf73WOE6kTzCLY0p2bLlz2zg== 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=1782317092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UD90xg+jrk9966ajUp24hohUjRA/+LE+FdPVkBDgyHQ=; b=Z6OmNga8BnbSE8fAaMSiBPHIQAxW1vEA1lPCwS2gW3ua0IOX2A2iC7KIVydBhWqeIao4xD 481M2TN/FsoeVcKKFRyQm45OT4LyzEel67uBvd8osSEunD7lfXc45yR1wTkxAAN6iv9eV5 gBXkfiqFHvSVxEZk04K2ib/iEMqeB+Ql/TTk/+AxZr1eGOyCP3TdYj06+gUfYe1vj+JT5Y ioMzPoiQJ0uzXcqShfF2wctDuTTgvVr2E9gDfbyA1JENLRz/rvAIlLd+PrrnM8XW3Bg5Ly 27T5RsSDuo5D3mDCJ3PJXWOkYGDGNBqiIOsAFM1SVXiGVJVCg8Vq5PD+PrQ4VA== Received: from mail.xzibition.com (unknown [127.0.1.132]) (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 freefall.freebsd.org (Postfix) with ESMTPS id 56BA718C6C; Wed, 24 Jun 2026 16:04:52 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from localhost (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 50A5297E7; Wed, 24 Jun 2026 09:04:51 -0700 (PDT) X-Virus-Scanned: amavis at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by localhost (mail.xzibition.com [172.31.3.2]) (amavis, port 10026) with LMTP id r8NO1eJdw4Lg; Wed, 24 Jun 2026 09:04:45 -0700 (PDT) Message-ID: <88c10bd6-0c00-4033-98d2-f910b466efc8@FreeBSD.org> DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com B397E97E5 Date: Wed, 24 Jun 2026 09:04:44 -0700 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: e03ed9daeb49 - main - fts: refactor to use fd-relative operations internally To: Alan Somers , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Jitendra Bhati References: <6a3a9e2c.1d985.79db71af@gitrepo.freebsd.org> Content-Language: en-US From: Bryan Drewery In-Reply-To: <6a3a9e2c.1d985.79db71af@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/23/26 7:54 AM, Alan Somers wrote: > The branch main has been updated by asomers: > > URL: https://cgit.FreeBSD.org/src/commit/?id=e03ed9daeb49fffa1d16b8d00240c65e92650d01 > > commit e03ed9daeb49fffa1d16b8d00240c65e92650d01 > Author: Jitendra Bhati > AuthorDate: 2026-06-12 17:07:55 +0000 > Commit: Alan Somers > CommitDate: 2026-06-23 14:53:56 +0000 > > fts: refactor to use fd-relative operations internally > > Replace all _open() calls with _openat() in __fts_open(), fts_read(), > and fts_children(). > > Add fts_dirfd to FTSENT. Callers can use > openat(ent->fts_dirfd, ent->fts_name, ...) to access files > safely without relying on fts_accpath, which enables: > > 1. Capsicum capability mode where path-based operations fail > 2. Security-sensitive programs that avoid TOCTOU races > > Replace statfs(ent->fts_path) with _fstatfs(ent->fts_dirfd) in > fts_ufslinks() when fts_dirfd is valid, falling back to statfs() for > root-level entries where fts_dirfd is -1 > > This is a preparatory change for fts_openat() which will allow > callers to provide a pre-opened directory fd, enabling fts(3) > traversal inside Capsicum capability mode. > > Sponsored by: Google LLC (GSoC 2026) > Reviewed by: asomers, jillest > MFC after: 2 weeks > Pull Request: https://github.com/freebsd/freebsd-src/pull/2278 Someone on IRC reported they bisected a Poudriere breakage to this commit.