!20 iSulad: fix seccomp configure for syscontainer
Merge pull request !20 from zhangsong234/master
This commit is contained in:
commit
619fdfd93e
@ -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