From nobody Fri Aug 29 15:29:20 2025 X-Original-To: freebsd-current@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 4cD2Hk4nZ1z65js0 for ; Fri, 29 Aug 2025 15:29:22 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cD2Hk3l2Rz40lF; Fri, 29 Aug 2025 15:29:22 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756481362; 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=MgnUYdTF7UAykKr/+Y2da0um2BoSqYOAd0TVNtF+J0U=; b=WHTzK2/gdKuFlqfbKtYGB3tmjHxtledncfu2sdkiU0HByBM/bOUk8GJ62hjIWSbawP17zI r5yXYVtvj96dbCTGt00/MDS+0v7dK+ep75X3j3BmF0eOGyuaqyBgA4ps1zJxNMdFynEwtl 2XA6tIjf5aOyOnrxmerNYIp0i1u+1F93WNcllhTIt3LIT3bUXXKonTOmBhQzIbOxe1uG+Y 5NzKAMg+KGE7IIQu0uNfH0IPtTDAn6NhmdeWjLyeJfJT44Q1wXhciaus1c62QdWkt9qq4E EESnZxgxujASxAyITnfutyFZ4KJBEX1x3GM3gppucXDMPMKfuuUQxxb5Z/DaIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756481362; 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=MgnUYdTF7UAykKr/+Y2da0um2BoSqYOAd0TVNtF+J0U=; b=xXyBfX4f5OekmXMTm4CjuZif5Kei/TU1wcy/uM9Pp0zdwot/ODlEZFmjiN2OV+RuBlM6Ng 2KN4AiIyaMD9eheWk4zpvRKOzINoTVhbG5Zpg+b9jvJGYfkRHPR5Um0RpPMUJx9mTsda1Z 76sDClGLkckD1SV0YIFqsrLvmRmYZBPmdGHwAQBU2TPsaTZx1DRM6jIe+BCbn3mt6e09YZ IRNQkQGzXYps34dwt1nVZt0TdRK/SyFBcgZPJyH1VK884e2bDj4g3IwsvVf+FmefrXNut/ xu1XhU/Pn3pC0DixjteBhcJuiM8gcrBDZq0a1IeavM5PKoui3pNk3YSzbHYVEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756481362; a=rsa-sha256; cv=none; b=VbcjsJQUx/nnWrTUBYy1px9RJn4n1X0NykpapiG/B4YKYeh+9OAorW5ZDE2B8iYXvIHdYY BFJfKaxkvjo2dRfkBgG+49bgD5R+tJN1iVnbGFCGcmLBSqpVXlXh2VkrPa61iGqVMGZ5Y9 ZTRi9FqMmCug54KMRmG/x/PazJxUKox1C3kC/dyBgDe/rBpo8JB3gvwLvo31eCqx7/x+Xr C65HlxW1AIHkXhK26POhwrpOpbBoAiN4DxOVW//aP8E0gYcpQPg0NTrAv3u9W9azjvkSUx ymp3vMQBqLd94jhHdkpcpoVn0qNl8IzoCvblTmep+UR7HbLIPaRvYen4THqFVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cD2Hk2GRTzCt6; Fri, 29 Aug 2025 15:29:22 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id C8DDA3BFF6; Fri, 29 Aug 2025 17:29:20 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Michael Butler Cc: freebsd-current Subject: Re: TZ changes affect screen In-Reply-To: (Michael Butler's message of "Fri, 29 Aug 2025 10:19:00 -0400") References: <62eb92d8-f71f-4b8f-bf12-e423ffb0f8fa@protected-networks.net> <865xe6tflz.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 29 Aug 2025 17:29:20 +0200 Message-ID: <861poutacv.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Butler writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Is /etc/localtime a symlink or a file? If a symlink, where does it > > point? > imb@d5540:/home/imb> ll /etc/localtime > lrwxr-xr-x 1 root wheel 36 Aug 29 09:24 /etc/localtime@ -> > /usr/share/zoneinfo/America/New_York > > Is the TZ variable set in your environment? If yes, what is it set to? > TZ is not set in either privileged or unprivileged environments. OK, the upstream code is setting TZLOAD_FROMENV unconditionally even when not using the environment variable. That is causing us to consider /etc/localtime as untrusted, and then reject it because it is not relative to /usr/share/zoneinfo. Unfortunately this fell between the cracks of my test cases (it's a combination of the thin_jail and setugid cases). I'll submit a patch upstream and fix it locally. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org