uti: util_indicate_clone: check --enable-uti mcexec option

Change-Id: Ic7474d01c18acd1edbc07844d7a7b010b2175f71
This commit is contained in:
Masamichi Takagi
2021-02-22 11:21:36 +09:00
parent 90895cfb1f
commit 19cb302d5f
7 changed files with 12 additions and 0 deletions

View File

@@ -10722,6 +10722,12 @@ SYSCALL_DECLARE(util_indicate_clone)
struct thread *thread = cpu_local_var(current);
struct uti_attr *kattr = NULL;
if (!thread->proc->enable_uti) {
kprintf("%s: error: --enable-uti mcexec option not specified\n",
__func__);
return -EINVAL;
}
if (mod != SPAWN_TO_LOCAL &&
mod != SPAWN_TO_REMOTE)
return -EINVAL;