├── .gitignore ├── .gitmodules ├── COPYING ├── Makefile ├── README.md ├── ccon-ced ├── ccon-cli.c ├── ccon.c ├── config.json ├── examples ├── README.md ├── bad │ ├── README.md │ └── net-host │ │ ├── README.md │ │ └── config.json └── good │ ├── README.md │ ├── cgroups │ ├── README.md │ ├── config.json │ └── freeze-and-signal │ ├── create-exec-delete-root │ ├── README.md │ ├── create.json │ └── exec.json │ ├── net-host-root │ ├── README.md │ └── config.json │ ├── net-new │ ├── README.md │ └── config.json │ ├── net-veth-root │ ├── README.md │ └── config.json │ ├── pivot-root │ ├── README.md │ ├── config.json │ ├── root │ │ └── .gitignore │ └── rootfs │ │ ├── bin │ │ └── .gitignore │ │ ├── dev │ │ └── .gitignore │ │ ├── etc │ │ └── resolv.conf │ │ ├── proc │ │ └── .gitignore │ │ ├── root │ │ └── .gitignore │ │ ├── run │ │ └── .gitignore │ │ ├── sys │ │ └── .gitignore │ │ └── tmp │ │ └── .gitignore │ └── terminal-root │ └── root │ └── .gitignore ├── libccon.c ├── libccon.h └── test ├── Makefile ├── README.md ├── aggregate-results.sh ├── sharness.d ├── busybox.sh ├── coreutils.sh ├── inotify.sh ├── posix-utilities.sh └── root.sh ├── sharness.sh ├── t0001-options.t ├── t0002-signal.t ├── t1001-process-user.t ├── t1002-process-cwd.t ├── t1003-process-capabilities.t ├── t1004-process-terminal.t ├── t1005-process-path.t ├── t1006-process-host.t ├── t1007-process-env.t ├── t1008-console.t ├── t2001-user-namespace.t ├── t2002-mount-namespace.t ├── t2003-pid-namespace.t ├── t2004-net-namespace.t ├── t2005-ipc-namespace.t ├── t2006-uts-namespace.t ├── t2007-cgroup-namespace.t └── t3001-start-socket.t /.gitignore: -------------------------------------------------------------------------------- 1 | ccon 2 | ccon-cli 3 | *.o 4 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/.gitmodules -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/COPYING -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/README.md -------------------------------------------------------------------------------- /ccon-ced: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/ccon-ced -------------------------------------------------------------------------------- /ccon-cli.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/ccon-cli.c -------------------------------------------------------------------------------- /ccon.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/ccon.c -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/config.json -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/bad/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/bad/README.md -------------------------------------------------------------------------------- /examples/bad/net-host/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/bad/net-host/README.md -------------------------------------------------------------------------------- /examples/bad/net-host/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/bad/net-host/config.json -------------------------------------------------------------------------------- /examples/good/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/README.md -------------------------------------------------------------------------------- /examples/good/cgroups/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/cgroups/README.md -------------------------------------------------------------------------------- /examples/good/cgroups/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/cgroups/config.json -------------------------------------------------------------------------------- /examples/good/cgroups/freeze-and-signal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/cgroups/freeze-and-signal -------------------------------------------------------------------------------- /examples/good/create-exec-delete-root/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/create-exec-delete-root/README.md -------------------------------------------------------------------------------- /examples/good/create-exec-delete-root/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/create-exec-delete-root/create.json -------------------------------------------------------------------------------- /examples/good/create-exec-delete-root/exec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/create-exec-delete-root/exec.json -------------------------------------------------------------------------------- /examples/good/net-host-root/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-host-root/README.md -------------------------------------------------------------------------------- /examples/good/net-host-root/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-host-root/config.json -------------------------------------------------------------------------------- /examples/good/net-new/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-new/README.md -------------------------------------------------------------------------------- /examples/good/net-new/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-new/config.json -------------------------------------------------------------------------------- /examples/good/net-veth-root/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-veth-root/README.md -------------------------------------------------------------------------------- /examples/good/net-veth-root/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/net-veth-root/config.json -------------------------------------------------------------------------------- /examples/good/pivot-root/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/pivot-root/README.md -------------------------------------------------------------------------------- /examples/good/pivot-root/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/examples/good/pivot-root/config.json -------------------------------------------------------------------------------- /examples/good/pivot-root/root/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/bin/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/dev/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/etc/resolv.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/proc/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/root/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/run/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/sys/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/pivot-root/rootfs/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /examples/good/terminal-root/root/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /libccon.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/libccon.c -------------------------------------------------------------------------------- /libccon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/libccon.h -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- 1 | sharness/test/Makefile -------------------------------------------------------------------------------- /test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/README.md -------------------------------------------------------------------------------- /test/aggregate-results.sh: -------------------------------------------------------------------------------- 1 | sharness/aggregate-results.sh -------------------------------------------------------------------------------- /test/sharness.d/busybox.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/sharness.d/busybox.sh -------------------------------------------------------------------------------- /test/sharness.d/coreutils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/sharness.d/coreutils.sh -------------------------------------------------------------------------------- /test/sharness.d/inotify.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/sharness.d/inotify.sh -------------------------------------------------------------------------------- /test/sharness.d/posix-utilities.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/sharness.d/posix-utilities.sh -------------------------------------------------------------------------------- /test/sharness.d/root.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/sharness.d/root.sh -------------------------------------------------------------------------------- /test/sharness.sh: -------------------------------------------------------------------------------- 1 | sharness/sharness.sh -------------------------------------------------------------------------------- /test/t0001-options.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t0001-options.t -------------------------------------------------------------------------------- /test/t0002-signal.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t0002-signal.t -------------------------------------------------------------------------------- /test/t1001-process-user.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1001-process-user.t -------------------------------------------------------------------------------- /test/t1002-process-cwd.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1002-process-cwd.t -------------------------------------------------------------------------------- /test/t1003-process-capabilities.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1003-process-capabilities.t -------------------------------------------------------------------------------- /test/t1004-process-terminal.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1004-process-terminal.t -------------------------------------------------------------------------------- /test/t1005-process-path.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1005-process-path.t -------------------------------------------------------------------------------- /test/t1006-process-host.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1006-process-host.t -------------------------------------------------------------------------------- /test/t1007-process-env.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1007-process-env.t -------------------------------------------------------------------------------- /test/t1008-console.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t1008-console.t -------------------------------------------------------------------------------- /test/t2001-user-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2001-user-namespace.t -------------------------------------------------------------------------------- /test/t2002-mount-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2002-mount-namespace.t -------------------------------------------------------------------------------- /test/t2003-pid-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2003-pid-namespace.t -------------------------------------------------------------------------------- /test/t2004-net-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2004-net-namespace.t -------------------------------------------------------------------------------- /test/t2005-ipc-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2005-ipc-namespace.t -------------------------------------------------------------------------------- /test/t2006-uts-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2006-uts-namespace.t -------------------------------------------------------------------------------- /test/t2007-cgroup-namespace.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t2007-cgroup-namespace.t -------------------------------------------------------------------------------- /test/t3001-start-socket.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wking/ccon/HEAD/test/t3001-start-socket.t --------------------------------------------------------------------------------