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

[1.1] libct/cg/sd/v2: fix ENOENT on cgroup delegation #3404

Merged
merged 1 commit into from Mar 10, 2022

Commits on Mar 8, 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>
    (cherry picked from commit 8c04b98)
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    kolyshkin committed Mar 8, 2022
    Copy the full SHA
    9619342 View commit details
    Browse the repository at this point in the history