Skip to content

Conversation

@vadorovsky
Copy link

Creating cgroups with cgroupfs as non-root is not possible. Before this change, we used to enforce systemd as a cgroup manager for all rootless containers, but that prevents the usage of rootless youki on systems wuthout systemd. To make such usage possible, raise a warning and skip cgroup-related activities instead. That matches the behavior of crun (containers/crun#97).

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • CI/CD related changes
  • Other (please describe):

Testing

  • Added new unit tests
  • Added new integration tests
  • Ran existing test suite
  • Tested manually (please provide steps)

Related Issues

Fixes #3144

Additional Context

Creating cgroups with cgroupfs as non-root is not possible. Before this
change, we used to enforce systemd as a cgroup manager for all rootless
containers, but that prevents the usage of rootless youki on systems
wuthout systemd. To make such usage possible, raise a warning and skip
cgroup-related activities instead. That matches the behavior of crun
(containers/crun#97).

Fixes youki-dev#3144

Signed-off-by: Michal Rostecki <vadorovsky@disroot.org>
@vadorovsky vadorovsky force-pushed the cgroupfs-rootless-warning branch from e918f58 to d8198be Compare April 11, 2025 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: libcontainer/libcgroup: rootless containers are trying to use systemd as cgroup manager, even if systemd is not present

1 participant