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: fix user ns join order for rootful container #4491

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 30, 2024

  1. tests: join more than one container namespaces

    Signed-off-by: lifubang <[email protected]>
    lifubang committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    629f6d3 View commit details
    Browse the repository at this point in the history
  2. libct: fix user ns join order for rootful container

    If we are rootless and there are userns-owned namespaces, we need to be in the
    userns in order to have the necessary permissions to do setns. This is what
    2cd9c31 fixed.
    But for rootful container, if we join the userns in first step, we may can't
    join some namespaces which have no permissions for the userns we have joined.
    
    Signed-off-by: lifubang <[email protected]>
    lifubang committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    8e79d03 View commit details
    Browse the repository at this point in the history