Unable to configure cgroup limits #22147
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
While I was launching a rootless container with a non-root process trying to set cpu limits via cgroupfs, I noticed that the process failed to start with the following error :
I reproduced the steps manually and I can't find any way to configure cpu limits in a cgroup child via cgroupfs inside a podman rootless container. The /sys/fs/cgroup is writable.
Steps to reproduce the issue
Steps to reproduce the issue
/sys/fs/cgroup
writable :test
:test
user :test
userDescribe the results you received
The steps above produce the following error :
Describe the results you expected
It should add the
cpu
controller to the/sys/fs/cgroup/test/cgroup.subtree_control
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
The steps above produce the same error when the cgroup child is owned by root user and the command to add controller executed by root user.
The text was updated successfully, but these errors were encountered: