iSulad: fix seccomp configure for syscontainer

Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
This commit is contained in:
zhangsong34 2020-03-17 21:38:43 +08:00
parent ee06544e44
commit 625dbee88e

View File

@ -1010,8 +1010,8 @@ int adapt_settings_for_system_container(oci_runtime_spec *oci_spec, const host_c
ERROR("Failed to parse security opt"); ERROR("Failed to parse security opt");
goto out; goto out;
} }
/* do not append to seccomp if seccomp profile is NULL or unconfined */ /* do not append to seccomp if seccomp profile unconfined */
if (seccomp_profile == NULL || strcmp(seccomp_profile, "unconfined") == 0) { if (seccomp_profile != NULL && strcmp(seccomp_profile, "unconfined") == 0) {
goto out; goto out;
} }