• Tycho Andersen's avatar
    tests: fix cgroupns test to not use nested namespaces · fd972a73
    Tycho Andersen authored
    Before we were unshare(CLONE_NEWCGROUP)ing in a child task, which meant
    that we couldn't c/r this test once we forbid nested cgroup namespaces.
    
    Instead, use a new strategy for testing cgroup namespaces: set up the
    namespace before forking the test task so there is no nesting, and then do
    a setns back to init's ns to check the cgroup namespace of the test. This
    doesn't work in the 'ns' flavor because init in the test's pid ns is the
    test itself. There is a bit of a chicken and egg problem here, though,
    because if we set it up after test_init(), we can't unshare because that
    would be a nested cgroup ns.
    Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    fd972a73
Name
Last commit
Last update
..
lib Loading commit data...
static Loading commit data...
transition Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...