From nobody Mon Jun 2 17:37:34 2025 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 4bB1JV3yLTz5x7Y9 for ; Mon, 02 Jun 2025 17:37:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bB1JV3TvMz3xf9 for ; Mon, 02 Jun 2025 17:37:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-312150900afso4850205a91.1 for ; Mon, 02 Jun 2025 10:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1748885865; x=1749490665; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PNpWa7Cz+PR2mVxhLS3mEt+U1XAWTpWeB3g4MhzmAUE=; b=1AVaLYzcgzOQch8lAwdjRBwXIaConOJtFr2qv7UbGm51CEEETTUb0YXYlGOrV0RcJf 2dm+bBZSVgoIMALBKyYkPNR59BMbJ3pWfliy9EU/q3fSI+6q60Ep+d/kT+J+pO+lyJII Pv5ve7IMaGw/IHm2a1/Dm3aNi/kb4m/Ycpf4JKldEOVWTxmYPSVLDUzFqzY16ReLWAcl 0PrxQayDxni2qByddGEvS3x4fRZyDiDhvAuSYG/9EGqFAt6s1MIaKrYxgytVuCjl7723 wOMHvWMD0vzEnTDd2NQ9t04O6KlPtzKHBNrGo2eBtIw+Y7hu1Qg4yaqWquTowBH7QNLV X2Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748885865; x=1749490665; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PNpWa7Cz+PR2mVxhLS3mEt+U1XAWTpWeB3g4MhzmAUE=; b=dIN4ZppR1VOXALhnVPmxOxlLUAPV6Rig76O+F7Rr7fKNC9nZhaKAFpxjslPx1ZDQRk t7frH/QOvMGSsCKHfQ0lz+8qaz1f3Rb0cfIw1D2kn6UNKIw+rKEmKL5mEm5VI6rSIgMp GuvcQigZyVL5DLv1vfh2dvZMReQiYPDZWyCqsfCNgfrRY4C6en9YaPmivVK3+zT79EHX B/9warf2DKgHWY7K2Y5oxHblHeDC2DCzgOB3tLBh5yQ9yY3VauBb/rceoV2hkp6Modb0 n0MEi7RyJNViW2REOoegLPSDgyLSHoKmhLs+LmW3IZoFgXra0yFc6woiNX/OEZg8cSM2 JOug== X-Forwarded-Encrypted: i=1; AJvYcCXJe12PxecVD/Ca1S8ubwZlITsCSjHhbjWqlBaNGEPRYI3PlhicIadXAnvB9W/URE/ekmYYHFeMuy30HkV264KSieM5Tg==@freebsd.org X-Gm-Message-State: AOJu0YwtBS/5F0LMVQpYCdlXpClJcqejnd12LAxGbXP0F3i2/enSFgW1 uWBZ+iifrLCp/NV14W+V2Pdr55Qatsur3HLW3K242FStXeEH0wxLhB0Sh8x9o89SQwH22rYdME8 cynX2IQ+wX09k6rWLTgTrJmv+TN3rqWbxNizBMjUD4waubdpBFK4xT7E= X-Gm-Gg: ASbGncuF9U219CwzekfjaxjJ2TmUcbdR+owhwY+oKeU+TiK2i4WkH4C4F0bDm+QJ7Js ulUNPqg/3ILIk3uu7sFYYKK0N51+sFv8kkng096h4P0Z8WeOiuY/OvcKJUlHcoc5zdfJp520cCB WZ124OYMt7dzN7TnbBNpn+64vlFHdLm5Jh X-Google-Smtp-Source: AGHT+IFqT7t/89JlaovDlIX0x9sUNZ6zXI0wiGe5fYxrJnFKsv9XES7z3xsReSv/b5e+P4JRRYxEcH9346e/4SnO8Uk= X-Received: by 2002:a17:90a:ec84:b0:311:f684:d3cd with SMTP id 98e67ed59e1d1-3127c6d7105mr17136987a91.12.1748885865262; Mon, 02 Jun 2025 10:37:45 -0700 (PDT) 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 MIME-Version: 1.0 References: <202506020549.5525nuDu054998@gitrepo.freebsd.org> <24533e37-2396-40ef-ba84-a5339b811527@FreeBSD.org> In-Reply-To: <24533e37-2396-40ef-ba84-a5339b811527@FreeBSD.org> From: Warner Losh Date: Mon, 2 Jun 2025 11:37:34 -0600 X-Gm-Features: AX0GCFuYCkYv0PV0Ueo6ZBroYgOBgzR3pieGlzSgkISE8zfsDHUXCckxaarBbew Message-ID: Subject: Re: git: 61d77e6c0095 - main - loader: allow for exceptions to restricted settings. To: Kyle Evans Cc: "Simon J. Gerraty" , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bB1JV3TvMz3xf9 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Mon, Jun 2, 2025 at 10:14=E2=80=AFAM Kyle Evans wro= te: > > On 6/2/25 00:49, Simon J. Gerraty wrote: > > The branch main has been updated by sjg: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=3D61d77e6c009544d1489078c1= 6a5d22b27d25c91b > > > > commit 61d77e6c009544d1489078c16a5d22b27d25c91b > > Author: Simon J. Gerraty > > AuthorDate: 2025-06-02 05:48:43 +0000 > > Commit: Simon J. Gerraty > > CommitDate: 2025-06-02 05:48:43 +0000 > > > > loader: allow for exceptions to restricted settings. > > > > We restrict what an unverified loader.conf etc can set, > > and the same restrictions are applied to interactive input. > > We need to allow for exceptions (eg boot_verbose). > > It is best if any allowed settings match up to '=3D'. > > > > If we do not allow it to be set, do not allow it to be unset > > > > Reviewed by: stevek > > Sponsored by: Juniper Networks, Inc. > > --- > Long-term, we should probably work out something that can work for > lualoader, too. We use setenv() there directly rather than adding a > layer of indirection through the command-line parser. Yea, I'd rather this be a property of the env variable than having lists li= ke this anyway. And that would solve another problem I have from time to time which is needing to have an always existing env variable with a default, bu= t overridable value. In these cases, you have to set that up in code, and it'= s a bit of a bother. If we do it right, we could have a three-fer: works with lua, works to set certain things immutable after a time and also lets us initialize th= ings. Though getting the details right so that we can set these in loader.conf, but then not set them on the command line is the most likely use case, and I thought for that use case we did the right thing in lualoader. no? Warner