SELinux labelling does not get disabled when using Podman machines
維護者通常 1 天內回覆
@darshpatel1052 已經在處理了。
開始於 2026年11月3日。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 40/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
- 領域
- devtools
研究方向
Start with isUsingSELinuxLabels() for image builds and getPodmanArgs() for container run args, both named in the issue. Check how cliHost and dockerCLI are used there and whether podman info can replace the getenforce check. Done means Podman machines and remote Podman get the SELinux decision from the correct host, with tests covering the changed branches.
由索引模型根據 Issue 內容生成。
描述
Since #1045, SELinux labelling is supposed to get disabled for devcontainers when using Podman. However, this only works when Podman runs directly on the same (Linux) host as the devcontainers CLI. It is never applied with a Podman machine (the default on macOS and Windows) and the decision is made on the wrong host when Podman is remote (e.g. through an SSH tunnel) or a Podman machine runs on Linux.
Consider the current code of isUsingSELinuxLabels() for image builds. Container run args have a similar issue in getPodmanArgs().
return params.cliVariant === CLIVariant.Podman && cliHost.platform === 'linux'
&& (await runCommandNoPty({
exec: cliHost.exec,
cmd: 'getenforce',
output,
print: true,
})).stdout.toString().trim() !== 'Disabled'
&& (await dockerCLI({
...toExecParameters(params),
print: true,
}, 'info', '-f', '{{.Host.Security.SELinuxEnabled}}')).stdout.toString().trim() === 'true';
Neither will cliHost.platform always be "linux", nor will running getenforce on the local host always yield the right result. On macOS, getenforce doesn't exist, so the call throws and returns false.
The correct way would probably be to always use podman info and remove the preceding checks.
Potentially related: #1071
- 主要語言
- TypeScript
- 星號
- 3k
- 分支
- 473
- 平均合併
- 10 小時 31 分鐘
- 30 天內合併 PR
- 9
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
devcontainers/cli 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
devcontainers/cli#1325 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
devcontainers/cli#1203 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 68/100
devcontainers/cli#1178 · 1 則留言 ·
維護者通常 1 天內回覆
-
up hangs after compose up -d on a cold start (Node 26, Compose 5.6)可能已有人在做 @v-Kaniska244 於 1 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
devcontainers/cli#1354 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
`devcontainer up --mount` rejects `type=image` and mount options such as `subpath`可能已有人在做 @agmitron 於 3 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
devcontainers/cli#1352 ·
維護者通常 1 天內回覆
查看 devcontainers/cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
duolicious/duolicious#1943 ·
維護者通常 1 天內回覆
-
bug needs-triage
難度 2/5 1-3 小時 新手友好度 80/100
nightly-labs/openbot#6451 ·
維護者通常 1 天內回覆
-
complexity: easy good first issue impact: low
難度 2/5 1-3 小時 新手友好度 72/100
ueberdosis/hocuspocus#1211 ·
維護者通常 1 天內回覆
-
e2e-failure ready-to-code
難度 2/5 1-3 小時 新手友好度 64/100
redhat-developer/rhdh-plugin-export-overlays#4733 · 1 則留言 ·
維護者通常 1 天內回覆
-
S-Needs triage
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 2 天內回覆