1.31: rootless exec fails when the caller's NPROC hard limit is lower than the container's
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux
- Ambito
- backend, operating-systems
Direzione di ricerca
Start by reading the change in crun PR 2299 and the related issue 2466, then trace how rootless exec and healthcheck setup apply RLIMIT_NPROC. Reproduce with the two Podman commands in the issue, using caller and container limits of 10000 and 10001. Done when both commands succeed under the lower caller limit without weakening the container's intended limit.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Starting with crun 1.31, rootless podman exec or podman healthcheck run might fail if the NPROC hard limit in the shell calling them is lower than the limit set in the running container.
This looks like it was introduced by https://github.com/containers/crun/pull/2299
This seems similar to https://github.com/containers/crun/issues/2466
Should the limit be set to the lower of the 2 hard limits available? Or is there a better way?
Reproducing the failure:
Podman exec
# Start a container with a NPROC limit at 10001
( ulimit -u 10001; podman run --rm -d --name test --runtime=crun docker.io/alpine sleep infinity )
# Run exec with a lower NPROC
( ulimit -u 10000; podman exec test true; )
This gives then:
Error: crun: setrlimit `RLIMIT_NPROC`: Operation not permitted: OCI permission denied
instead of succeeding.
Cleanup by running: podman kill test
Podman healthcheck run
# Start a container with a NPROC limit at 10001
( ulimit -u 10001; podman run -d --name test --runtime=crun --health-cmd=true --health-interval=disable docker.io/alpine sleep infinity )
# Run the healthcheck, this will fail
( ulimit -u 10000; podman healthcheck run test )
This gives then:
unhealthy
instead of healthy.
Cleanup by running: podman kill test
- Lingua principale
- C
- Stelle
- 4.2k
- Fork
- 476
- Merge medio
- 1g 10h
- PR unite (30g)
- 55
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di containers/crun
-
krun: render-server sandbox dev-binds only /dev/dri, so NVIDIA GPUs are invisibleForse già presa @ViderStar l’ha presa 31 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
containers/crun#2413 ·
I maintainer di solito rispondono entro 1 giorno
-
1.31: fail to run with mounts inside target on old kernels without mount_setattr()Forse già presa @martinetd l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
containers/crun#2484 ·
I maintainer di solito rispondono entro 1 giorno
-
1.31: exec fails with "write to /proc/self/oom_score_adj: Permission denied" under a systemd user manager (rootless podman API, healthchecks)Forse già presa @rfay l’ha presa 13 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
containers/crun#2466 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
krun: hardcoded /usr/bin/bwrap and /usr/libexec/virgl_render_server break distributions that install the server under /usr/libForse già presa @slp l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
containers/crun#2414 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
cgroup-systemd: parse_cpu_max accepts malformed cpu.max values that the kernel reads differentlyForse di nuovo libera @Krishna221308 l’ha presa 14 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
containers/crun#2405 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di containers/crun
Issue simili
-
bug severity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AlessandroSangiuliano/Uros#1014 ·
-
severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
luainkernel/lunatik#2727 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 6 giorni
-
Termux compilation failureApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pytorch/pytorch#206707 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno