Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2023 04:35:35 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b9b8a4769c09 - main - RELNOTES: add a note about lua config files in loader
Message-ID:  <202307250435.36P4ZZN6056118@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9b8a4769c09d6e9422be242c4de1d881095ba82

commit b9b8a4769c09d6e9422be242c4de1d881095ba82
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-07-25 04:35:25 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-07-25 04:35:25 +0000

    RELNOTES: add a note about lua config files in loader
    
    Scripted configuration can make safer some use-cases that currently use
    local.lua, but don't actually need to access external resources to make
    their changes.  Let's note the new feature in RELNOTES.
    
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D40066
---
 RELNOTES | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/RELNOTES b/RELNOTES
index d257f4cf4813..8c1b48de7e5c 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -10,6 +10,15 @@ newline.  Entries should be separated by a newline.
 
 Changes to this file should not be MFCed.
 
+3cb2f5f369ec:
+	The lua-flavored loader(8) will now interpret .lua files that appear in
+	loader_conf_files as lua, and execute them in a sandbox.  Existing
+	loader environment variables are available as globals in the sandbox,
+	and any global variable set, if not a table value, will be reflected in
+	the loader environment upon successful execution of the configuration
+	file.  Environment variables with names that aren't valid lua names may
+	be accessed as indices of _ENV; e.g., _ENV['net.fibs'].
+
 bdc81eeda05d:
 
 	nda is now the default nvme device on all platforms. While nda creates



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307250435.36P4ZZN6056118>