From nobody Wed Nov 27 22:27:13 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 4XzDZn5QYLz5fsfB; Wed, 27 Nov 2024 22:27:13 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XzDZn3nvJz4VDQ; Wed, 27 Nov 2024 22:27:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732746433; 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=TaxrquU7jGwhdiRiZ+NwokkirxZAz4UwkCjDRyJAo9k=; b=nEao0M8mA+migD24IP5h96yunlcV1fl5+d8OJnXJYNSz1HpPCvwo6dsD+MDi5mrptp1aUl FkUg6q3+/d8y96uz5tgD9dbnzIqc7KqOb+DYsLLHalBIIrJEKFckEMZ3irc5HI7tAMX2L0 04GTYaip6FnruQM8TfsBAoSLVN6AW49XmS+cEQ2puKae42T6bZEH42jBP7WUUmb19HZyzz lABa3paUuC+rSIru7IBBQNctOkjvxFrPmCGEOXaTXXC1ubYk8hAZTtnU3Uaglvv9RQHg1M vQznFLtHMWonGZaj12/LsRoXHoON5BS45r2pRPCf7PJG2Zic4Qx6QMQorXXogQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732746433; 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=TaxrquU7jGwhdiRiZ+NwokkirxZAz4UwkCjDRyJAo9k=; b=pNhd0TQzec+eIB2c8zu1hOrWnBLr3f+4MA+/zLEb2lF+ia+YIrmMJH6lJV1IPEWhAASflk ewyQmT/ygqH5ljr5UjgF983szyM9nDX6torebPIvjN5FkoDPjqBzkp1UKsRPDzGg4NcYqO LheCBnqzPiZB4pEG1PE0KXeYlMtOeKzJNbiX6zMjHz0L0ISMIyp5sXmHVqn4GCnx6MCMYp tqO9BdciDg/JaY7f8OPr7Y1Kt8FwqT9w+KOGAIc2z8eUepehkJMYnqS8fc03UWJTF3Pabz vPcuCtGW8FwshxoSgk8S2SbscFu90O5iyxBNzAGxSDGO0NCuT4fQSNLB/3Gvxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732746433; a=rsa-sha256; cv=none; b=Y/JLAZMx67JrXIDgjHkKf0bOeMeocypRUei3JwK3Ei3ITakZPY/DYknN/FGvoaBsFtnHZM LOMQ2tg6VivR5Pz47Vp8uOdg8KDNGi1AN80uLT2lCsDegC5EK2Yf5y7a5tBitWwKV5DOF9 XdNFYaP/ECI5IXzt+okG72acJyzbfAt90/JrgYvVQwsYaHl1CeKj3HSqzp10a9rp6UUx0D WByIL42++pPvE2C2vVeo38B9cq8cqjg6Pqp1ZmWolEb+eGyG5NgwZB5Wh3s9fSHq74RLpU qQTUtTuY/8/WZqFuUyL6A8aG67X7pmxS/cRTRMCuw+qjOq0N0d/wtGFd/3JJAQ== 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 4XzDZn3QM9z1RwZ; Wed, 27 Nov 2024 22:27:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4ARMRDjC026682; Wed, 27 Nov 2024 22:27:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ARMRDqi026679; Wed, 27 Nov 2024 22:27:13 GMT (envelope-from git) Date: Wed, 27 Nov 2024 22:27:13 GMT Message-Id: <202411272227.4ARMRDqi026679@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jake Freeland Subject: git: 24f4019b6a89 - main - syslogd: Block timezone updating 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jfree X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 24f4019b6a898edde3159e930c3ab6ef88ce87c9 Auto-Submitted: auto-generated The branch main has been updated by jfree: URL: https://cgit.FreeBSD.org/src/commit/?id=24f4019b6a898edde3159e930c3ab6ef88ce87c9 commit 24f4019b6a898edde3159e930c3ab6ef88ce87c9 Author: Jake Freeland AuthorDate: 2024-11-27 22:25:55 +0000 Commit: Jake Freeland CommitDate: 2024-11-27 22:25:55 +0000 syslogd: Block timezone updating in capability mode Do not update local timezone data upon reload when syslogd is compiled with libcasper support. Timezone files are pre-fetched using the caph_cache_tzdata() function before entering capability mode. Attempts to re-fetch these files will result in a capability violation. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D41466 --- usr.sbin/syslogd/syslogd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index fcf7d4747706..755552ecd21c 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -2508,7 +2508,12 @@ init(bool reload) LocalDomain = ""; } +#ifndef WITH_CASPER /* + * XXX: Disable when running in capability mode, for now. + * This requires a new interface in the tzcode module to + * get running without capability violations. + * * Load / reload timezone data (in case it changed). * * Just calling tzset() again does not work, the timezone code @@ -2525,6 +2530,7 @@ init(bool reload) tzset(); unsetenv("TZ"); } +#endif Initialized = false; closelogfiles();