Date: Fri, 29 Aug 2025 17:29:20 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Michael Butler <imb@protected-networks.net> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: TZ changes affect screen Message-ID: <861poutacv.fsf@ltc.des.dev> In-Reply-To: <d7a441c2-234c-45d1-80a8-d2d6b380556f@protected-networks.net> (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> <d7a441c2-234c-45d1-80a8-d2d6b380556f@protected-networks.net>
index | next in thread | previous in thread | raw e-mail
Michael Butler <imb@protected-networks.net> writes: > Dag-Erling Smørgrav <des@FreeBSD.org> 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 -- Dag-Erling Smørgrav - des@FreeBSD.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861poutacv.fsf>
