Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libct/cg/sd/v2: fix ENOENT on cgroup delegation #3389

Merged
merged 1 commit into from Mar 4, 2022

Commits on Feb 21, 2022

  1. libct/cg/sd/v2: fix ENOENT on cgroup delegation

    Apparently, not all files listed in /sys/kernel/cgroup/delegate must
    exist in every cgroup, so we should ignore ENOENT.
    
    Dot not ignore ENOENT on the directory itself though.
    
    Change cgroupFilesToChown to not return ".", and refactor it to not do
    any dynamic slice appending in case we're using the default built-in
    list of files.
    
    Fixes: 35d20c4
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    kolyshkin committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    8c04b98 View commit details
    Browse the repository at this point in the history