lcr/0016-290-fix-seccomp-write-error.patch
jikai 3b4b08f18a sync from upstream
Signed-off-by: jikai <jikai11@huawei.com>
(cherry picked from commit 0a5748543c47e895a44afbc57de2d1ad6f9063d9)
2024-06-11 19:20:37 +08:00

26 lines
890 B
Diff

From 6eeab992e06fa74b027d922057cc6d5900d438be Mon Sep 17 00:00:00 2001
From: jake <jikai11@huawei.com>
Date: Tue, 21 Nov 2023 12:54:50 +0000
Subject: [PATCH 16/22] !290 fix seccomp write error * fix seccomp write error
---
src/lcrcontainer_extend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lcrcontainer_extend.c b/src/lcrcontainer_extend.c
index 9136613..e3c081a 100644
--- a/src/lcrcontainer_extend.c
+++ b/src/lcrcontainer_extend.c
@@ -406,7 +406,7 @@ static char *lcr_save_seccomp_file(const char *bundle, const char *seccomp_conf)
}
if (lcr_util_atomic_write_file(real_seccomp, seccomp_conf, strlen(seccomp_conf),
- CONFIG_FILE_MODE, false) != -1) {
+ CONFIG_FILE_MODE, false) == -1) {
ERROR("write seccomp_conf failed");
goto cleanup;
}
--
2.34.1