lcr/0016-290-fix-seccomp-write-error.patch
openeuler-sync-bot dd2d06b3b3 !276 [sync] PR-273: sync from upstream
* sync from upstream
2023-12-11 14:34:37 +00: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/20] !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.33.0