diff --git a/kernel/sys/syscall.c b/kernel/sys/syscall.c index 20a87197..452e0031 100644 --- a/kernel/sys/syscall.c +++ b/kernel/sys/syscall.c @@ -98,7 +98,10 @@ long sys_sysfunc(long fn, char ** args) { case TOARU_SYS_FUNC_INSMOD: /* Linux has init_module as a system call? */ if (this_core->current_process->user != 0) return -EACCES; + #if defined(__aarch64__) + /* TODO: Most modules are not right for this and we are missing relocations */ return -EINVAL; + #endif PTR_VALIDATE(args); if (!args) return -EFAULT; PTR_VALIDATE(args[0]);