We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67dab0 commit 2751571Copy full SHA for 2751571
tests/integration/cgroups.bats
@@ -110,6 +110,17 @@ EOF
110
111
runc run -d --console-socket $CONSOLE_SOCKET test_cgroups_permissions
112
[ "$status" -eq 0 ]
113
+ if [ "$CGROUP_UNIFIED" != "no" ]; then
114
+ if [ -n "${RUNC_USE_SYSTEMD}" ] ; then
115
+ if [ $(id -u) = "0" ]; then
116
+ check_cgroup_value "cgroup.controllers" "$(cat /sys/fs/cgroup/machine.slice/cgroup.controllers)"
117
+ else
118
+ check_cgroup_value "cgroup.controllers" "$(cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/cgroup.controllers)"
119
+ fi
120
121
+ check_cgroup_value "cgroup.controllers" "$(cat /sys/fs/cgroup/cgroup.controllers)"
122
123
124
}
125
126
@test "runc exec (limits + cgrouppath + permission on the cgroup dir) succeeds" {
0 commit comments