mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
nspawn: whitespace
This commit is contained in:
parent
4955d2e367
commit
620682e675
|
@ -409,18 +409,18 @@ static int oci_user(const char *name, JsonVariant *v, JsonDispatchFlags flags, v
|
||||||
static int oci_process(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userdata) {
|
static int oci_process(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userdata) {
|
||||||
|
|
||||||
static const JsonDispatch table[] = {
|
static const JsonDispatch table[] = {
|
||||||
{ "terminal", JSON_VARIANT_BOOLEAN, oci_terminal, 0, 0 },
|
{ "terminal", JSON_VARIANT_BOOLEAN, oci_terminal, 0, 0 },
|
||||||
{ "consoleSize", JSON_VARIANT_OBJECT, oci_console_size, 0, 0 },
|
{ "consoleSize", JSON_VARIANT_OBJECT, oci_console_size, 0, 0 },
|
||||||
{ "cwd", JSON_VARIANT_STRING, oci_absolute_path, offsetof(Settings, working_directory), 0 },
|
{ "cwd", JSON_VARIANT_STRING, oci_absolute_path, offsetof(Settings, working_directory), 0 },
|
||||||
{ "env", JSON_VARIANT_ARRAY, oci_env, offsetof(Settings, environment), 0 },
|
{ "env", JSON_VARIANT_ARRAY, oci_env, offsetof(Settings, environment), 0 },
|
||||||
{ "args", JSON_VARIANT_ARRAY, oci_args, offsetof(Settings, parameters), 0 },
|
{ "args", JSON_VARIANT_ARRAY, oci_args, offsetof(Settings, parameters), 0 },
|
||||||
{ "rlimits", JSON_VARIANT_ARRAY, oci_rlimits, 0, 0 },
|
{ "rlimits", JSON_VARIANT_ARRAY, oci_rlimits, 0, 0 },
|
||||||
{ "apparmorProfile", JSON_VARIANT_STRING, oci_unsupported, 0, JSON_PERMISSIVE },
|
{ "apparmorProfile", JSON_VARIANT_STRING, oci_unsupported, 0, JSON_PERMISSIVE },
|
||||||
{ "capabilities", JSON_VARIANT_OBJECT, oci_capabilities, 0, 0 },
|
{ "capabilities", JSON_VARIANT_OBJECT, oci_capabilities, 0, 0 },
|
||||||
{ "noNewPrivileges", JSON_VARIANT_BOOLEAN, json_dispatch_tristate,offsetof(Settings, no_new_privileges), 0 },
|
{ "noNewPrivileges", JSON_VARIANT_BOOLEAN, json_dispatch_tristate, offsetof(Settings, no_new_privileges), 0 },
|
||||||
{ "oomScoreAdj", JSON_VARIANT_INTEGER, oci_oom_score_adj, 0, 0 },
|
{ "oomScoreAdj", JSON_VARIANT_INTEGER, oci_oom_score_adj, 0, 0 },
|
||||||
{ "selinuxLabel", JSON_VARIANT_STRING, oci_unsupported, 0, JSON_PERMISSIVE },
|
{ "selinuxLabel", JSON_VARIANT_STRING, oci_unsupported, 0, JSON_PERMISSIVE },
|
||||||
{ "user", JSON_VARIANT_OBJECT, oci_user, 0, 0 },
|
{ "user", JSON_VARIANT_OBJECT, oci_user, 0, 0 },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -432,8 +432,8 @@ static int oci_root(const char *name, JsonVariant *v, JsonDispatchFlags flags, v
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
static const JsonDispatch table[] = {
|
static const JsonDispatch table[] = {
|
||||||
{ "path", JSON_VARIANT_STRING, json_dispatch_string, offsetof(Settings, root) },
|
{ "path", JSON_VARIANT_STRING, json_dispatch_string, offsetof(Settings, root) },
|
||||||
{ "readonly", JSON_VARIANT_BOOLEAN, json_dispatch_tristate,offsetof(Settings, read_only) },
|
{ "readonly", JSON_VARIANT_BOOLEAN, json_dispatch_tristate, offsetof(Settings, read_only) },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue