mirror of
https://github.com/opencontainers/runc.git
synced 2026-02-05 18:45:28 +01:00
Every unit created by runc need daemon reload since systemd v230.
This breaks support for NVIDIA GPUs, see
https://github.com/opencontainers/runc/issues/3708#issuecomment-2216967210
A workaround is to set DeviceAllow before DevicePolicy.
Also:
- add a test case (which fails before the fix) by @kolyshkin
- better explain why we need empty DeviceAllow (by @cyphar)
Fixes 4568.
Reported-by: Jian Wen <wenjianhn@gmail.com>
Co-authored-by: Jian Wen <wenjianhn@gmail.com>
Co-authored-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit d84388ae10)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>