From c7529bc444e84dda61a33b00908e3bfdcc03c1f6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 4 Jan 2016 16:32:01 -0800 Subject: [PATCH] ccon: Bump to v0.3.0 Potentially backwards incompatible changes since v0.2.0: ccon: * Replace block_forever with exit(0). * Shift namespace-path and host-executable file-opens to before the clone. Backwards compatible changes since v0.2.0: ccon: * Set parent death signal to SIGKILL. * Add a --config-string option so you don't need pipes or process substitution to pass a config string into ccon. * Added more config validation, although coverage is still not complete. * Assorted bug fixes. README: * Lots of typo fixes. wrappers (with examples): * ccon-oci: Add a wrapper for formal OCI compliance (currently just the namespace features, not the resource limits). * ccon-ced: A create/exec/delete wrapper around ccon. --- README.md | 6 +++--- ccon.c | 3 ++- examples/good/create-exec-delete-root/create.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3f4cef5..7571645 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ or (using [Bash][bash]'s [process substitution][bash-process-substitution]): ``` -$ ccon --config <(echo '{"version": "0.2.0", "process": …}') +$ ccon --config <(echo '{"version": "0.3.0", "process": …}') ``` You can also specify the config JSON directly on the command line with @@ -122,7 +122,7 @@ You can also specify the config JSON directly on the command line with pipes or process substitution are too awkward: ``` -$ ccon --config-string '{"version": "0.2.0", "process": …}' +$ ccon --config-string '{"version": "0.3.0", "process": …}' ``` There are additional examples focusing on specific tasks in the @@ -137,7 +137,7 @@ The ccon version represented in the config file. #### Example ```json -"version": "0.2.0" +"version": "0.3.0" ``` ### Namespaces diff --git a/ccon.c b/ccon.c index 85946de..bfe63fa 100644 --- a/ccon.c +++ b/ccon.c @@ -220,7 +220,7 @@ static void usage(FILE * stream, char *path) static void version() { - printf("ccon 0.2.0\n"); + printf("ccon 0.3.0\n"); } static void kill_child(int signum, siginfo_t * siginfo, void *unused) @@ -375,6 +375,7 @@ static int validate_version(json_t * config) const char *supported_versions[] = { "0.1.0", "0.2.0", + "0.3.0", NULL, }; int i, err; diff --git a/examples/good/create-exec-delete-root/create.json b/examples/good/create-exec-delete-root/create.json index 7ce32d3..a1e8453 100644 --- a/examples/good/create-exec-delete-root/create.json +++ b/examples/good/create-exec-delete-root/create.json @@ -1,5 +1,5 @@ { - "version": "0.1.0", + "version": "0.3.0", "namespaces": { "mount": {}, "ipc": {},