Skip to content

Conversation

@sparkzky
Copy link
Collaborator

Add conditional compilation to skip cgroup-related operations when
the mock-cgroup feature is enabled. This allows the container to run
on systems without /sys/fs/cgroup support.

Changes:

  • Skip CLONE_NEWCGROUP unshare in mock-cgroup mode
  • Skip cgroup v2 mount operations in mock-cgroup mode
  • Add stat check skip for cgroup mounts

  Add conditional compilation to skip cgroup-related operations when
  the mock-cgroup feature is enabled. This allows the container to run
  on systems without /sys/fs/cgroup support.

  Changes:
  - Skip CLONE_NEWCGROUP unshare in mock-cgroup mode
  - Skip cgroup v2 mount operations in mock-cgroup mode
  - Add stat check skip for cgroup mounts

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
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.

1 participant