]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
api_extensions: add environment_runtime_hooks extension
authorFilip Schauer <f.schauer@proxmox.com>
Tue, 16 Sep 2025 09:38:11 +0000 (11:38 +0200)
committerFiliprogrammer <44641787+Filiprogrammer@users.noreply.github.com>
Tue, 16 Sep 2025 10:31:29 +0000 (12:31 +0200)
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
doc/api-extensions.md
src/lxc/api_extensions.h

index 0e9c724e82a58426ff3bbf32de0a4ba0a6850233..4a0699289cd8cb3f1551c18c8197be8800698e31 100644 (file)
@@ -160,3 +160,10 @@ This adds the new options `cgroup2`, `cgroup2:ro`, `cgroup2:force`,
 `cgroup2:ro:force` for the `lxc.mount.auto` configuration key. For example, if
 a user specifies `cgroup2:force` LXC will pre-mount a pure `cgroup2` layout for
 the container even if the host is running with a hybrid layout.
+
+## environment\_runtime\_hooks
+
+This introduces `lxc.environment.runtime` and `lxc.environment.hooks`
+configuration keys to allow environment variables to be applied only to the
+container init process or only to hooks respectively.
+`lxc.environment` remains and still applies to both.
index 6a0b9fe98d08691bceccd2cc213b4526fb962da9..54ca565f86e2cd895275da9a8c06238003f6f85a 100644 (file)
@@ -52,6 +52,7 @@ static char *api_extensions[] = {
        "idmapped_mounts_v2",
        "core_scheduling",
        "cgroup2_auto_mounting",
+       "environment_runtime_hooks",
 };
 
 static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions);