From 7c238c27c91bcc3a229e887930a7e5608a5b5c8d Mon Sep 17 00:00:00 2001 From: "TOIDA,Suguru" Date: Fri, 1 Mar 2019 17:02:51 +0900 Subject: [PATCH] uti: Check syscall number definition in hook() Change-Id: I24d226199d03d23a12710ff1cad9fef29a6feedd --- executer/user/syscall_intercept.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/executer/user/syscall_intercept.c b/executer/user/syscall_intercept.c index e009565a..3d1e0dae 100644 --- a/executer/user/syscall_intercept.c +++ b/executer/user/syscall_intercept.c @@ -104,8 +104,12 @@ hook(long syscall_number, uti_syscall3(__NR_ioctl, uti_desc.fd, MCEXEC_UP_TERMINATE_THREAD, (long)&term_desc); return 1; case __NR_clone: +#ifdef __NR_fork case __NR_fork: +#endif /* __NR_fork */ +#ifdef __NR_vfork case __NR_vfork: +#endif /* __NR_vfork */ case __NR_execve: *result = -ENOSYS; return 0;