Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: oci: enter cgroup before executing crun as non-root
When executed from a root-owned cgroup, such as the session scope resulting from a bare ssh login, crun will fail to create our requested container cgroup. If we are running as non-root, create and move into a user-owned cgroup, so that there's a common user-owned ancestor. This avoids the `crun` error. Note that no workaround is needed for `runc` as it is able to create the requested container cgroup without any issue. Fixes sylabs/singularity#1538 Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
- Loading branch information