Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,071 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@v-Kaniska244 ci sta già lavorando.

Dal 24/9/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
TypeScript
Stelle
3k
Fork
461
Merge medio
18m
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devcontainers/cli

Tutte le issue di devcontainers/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.