提交 634204b6 编写于 作者: Z zhangsong34

iSulad: fix seccomp configure for syscontainer

Signed-off-by: Nzhangsong34 <zhangsong34@huawei.com>
上级 e1232929
......@@ -1010,8 +1010,8 @@ int adapt_settings_for_system_container(oci_runtime_spec *oci_spec, const host_c
ERROR("Failed to parse security opt");
goto out;
}
/* do not append to seccomp if seccomp profile is NULL or unconfined */
if (seccomp_profile == NULL || strcmp(seccomp_profile, "unconfined") == 0) {
/* do not append to seccomp if seccomp profile unconfined */
if (seccomp_profile != NULL && strcmp(seccomp_profile, "unconfined") == 0) {
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册