Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Podman: SELinux detection fails when VS Code runs inside Flatpak (label=disable needed)

オープン
#1,071 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@v-Kaniska244 がすでに取り組んでいます。

2025年9月24日 から。

評価

この issue はまだ評価されていません。

説明

Description

When using VS Code with Podman + SELinux, VS Code currently detects an SELinux-enabled environment by calling getenforce and checking .Host.Security.SELinuxEnabled. If VS Code is running inside a Flatpak, getenforce inside the Flatpak returns "Disabled" even though the host is "Enforcing". That makes VS Code think SELinux is not enabled and it does not pass label=disable, causing permission/SELinux denial issues when building containers with features. If I manually make getenforce return "Enforcing" inside the Flatpak, detection succeeds and the container build works.

Environment

  • Host OS: Fedora (or another SELinux‑enforcing distribution).
  • VS Code as Flatpak: com.visualstudio.code + com.visualstudio.code.tool.podman.
  • Podman version: 5.6.1
  • VS Code version: 1.102.1

Steps to reproduce

  1. Click "Dev Containers: Reopen in Container" from VS Code.

Actual behavior

  • Inside a Flatpak sandbox, getenforce reports Disabled and detection fails, so label=disable is not set and builds fail.

Expected behavior

  • VS Code should correctly detect the host SELinux state when running inside Flatpak sandboxes and pass label=disable when necessary to avoid SELinux denial issues with Podman.

Suggested fixes / discussion

  • Consider additional detection strategies when running inside Flatpak.
主要言語
TypeScript
スター
3k
フォーク
461
平均マージ
18分
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

devcontainers/cli のほかの issue

devcontainers/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。