From b6ce88092c44e45fd18a1e8ccf797902b7d5fb01 Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Sun, 6 Oct 2024 20:40:05 -0400 Subject: [PATCH] Disable SELinux enforcement on dev containers On SELinux-enforcing systems, such as stock Fedora (to be more precise, in my case, Fedora Silverblue), running `scripts/setup` fails with a "Permission Denied" error. Fixing the root cause here seemingly requires mucking around in the devcontainers CLI source, so we just bail out and use a workaround. Upstream bug: devcontainers/cli#914 --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2b15a65ff1dc8..56fb5e421e3b3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,7 +12,7 @@ }, // Port 5683 udp is used by Shelly integration "appPort": ["8123:8123", "5683:5683/udp"], - "runArgs": ["-e", "GIT_EDITOR=code --wait"], + "runArgs": ["-e", "GIT_EDITOR=code --wait", "--security-opt", "label=disable"], "customizations": { "vscode": { "extensions": [