mirror of
https://github.com/containers/youki
synced 2026-12-01 14:03:15 +01:00
* refactor(libcgroups): build the device Emulator in one place Add Emulator::from_spec, which starts from deny-all, adds the spec's device rules in order and then the default devices. The cgroupfs v2 controller and the systemd device controller both use it, so the default-device logic exists only once. No behavior change. Fixes #3908 Signed-off-by: Parman Mohammadalizadeh <prmma23@gmail.com> * refactor(libcgroups): keep the device FIXMEs on Emulator::from_spec The two open questions moved with the code they were about, so they now cover both the cgroupfs v2 and systemd drivers. Signed-off-by: Parman Mohammadalizadeh <prmma23@gmail.com> --------- Signed-off-by: Parman Mohammadalizadeh <prmma23@gmail.com>