Skip to content

Conversation

@kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Apr 4, 2023

This is a followup to PR #3784.

These functions were added in ancient times, facilitating the docker-in-docker case when cgroup namespace was not available.

As pointed out in commit 2b28b3c (PR #194), using init 1 cgroup is not correct because it won't work in case of host PID namespace.

The last user of GetInitCgroup was removed by commit 54e2021 (PR #3784). GetInitCgroupPath was never used as far as I can see, nor was I able to find any external users.

Remove both functions. Modify the comment in libct/cg/fs.subsysPath to not refer to GetInitCgroupPath.

These functions were added in ancient times, facilitating the
docker-in-docker case when cgroup namespace was not available.

As pointed out in commit 2b28b3c, using init 1 cgroup is not
correct because it won't work in case of host PID namespace.

The last user of GetInitCgroup was removed by commit
54e2021. GetInitCgroupPath was never used
as far as I can see, nor was I able to find any external users.

Remove both functions. Modify the comment in libct/cg/fs.subsysPath
to not refer to GetInitCgroupPath.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@AkihiroSuda AkihiroSuda enabled auto-merge April 4, 2023 18:37
@kolyshkin
Copy link
Contributor Author

The failure in ci/centos-7 is a very rare race; I managed to figure out what is going on and suggest a fix here: #3812

CI restarted.

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.

3 participants