Give runc fibers no capabilities once CRIU can dump a mount namespace per fiber

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, linux

Direzione di ricerca

Start by tracing runc fiber capability setup and the CRIU dump path around criu/files-reg.c:1790; the issue does not name repository files or tests. Compare the two listed approaches, accounting for the registry-template bind and the missing per-fiber mount namespace support. Done means fibers can run without capabilities while CRIU can dump and restore them reliably.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

runc fibers keep CAP_SYS_ADMIN, which CRIU's parasite needs to mount a scratch /proc for a fiber whose /proc is not its own. Full nocaps would need a mount namespace per runc fiber, and CRIU cannot dump that today.

criu/files-reg.c:1790: Can't lookup mount=N for fd=-3 path=/bin/refzygote

The zygote's executable stays mapped through the container's mount namespace, which CRIU neither dumps nor runs in. On overlayfs, CRIU falls back to the path and passes, which hid this in the integration suite.

Options.

  • Teach CRIU to find a mapping's mount by its path.
  • Give each grant's runc zygote an overlayfs root, which leans on that same fallback and leaves the registry-template bind uncovered.
Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.