• 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
Documentation Loading commit data...
contrib Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...