iSulad: fix seccomp configure for syscontainer
Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
This commit is contained in:
parent
ee06544e44
commit
625dbee88e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user