32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 3f9f8a6ed3c05f21d6bc95e1f29cb9fbfac981e1 Mon Sep 17 00:00:00 2001
|
|
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
Date: Mon, 15 May 2023 20:10:05 +0200
|
|
Subject: [PATCH] nspawn: fix inverted condition
|
|
|
|
(cherry picked from commit fc832965476d106fb3d5a6c9a43f5ff3166987b2)
|
|
(cherry picked from commit 756e77b93636a6de55110e46158defd1d7e69aca)
|
|
(cherry picked from commit 40024e6d39bbcc9ee9a3f2de60edaaa7fc5a132c)
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/systemd/systemd-stable/commit/3f9f8a6ed3c05f21d6bc95e1f29cb9fbfac981e1
|
|
---
|
|
src/nspawn/nspawn-oci.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/nspawn/nspawn-oci.c b/src/nspawn/nspawn-oci.c
|
|
index 4d69543254..86b838bd0e 100644
|
|
--- a/src/nspawn/nspawn-oci.c
|
|
+++ b/src/nspawn/nspawn-oci.c
|
|
@@ -1638,7 +1638,7 @@ static int oci_sysctl(const char *name, JsonVariant *v, JsonDispatchFlags flags,
|
|
|
|
assert_se(m = json_variant_string(w));
|
|
|
|
- if (sysctl_key_valid(k))
|
|
+ if (!sysctl_key_valid(k))
|
|
return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
|
|
"sysctl key invalid, refusing: %s", k);
|
|
|
|
--
|
|
2.33.0
|
|
|