From 1baf122e28fc19af687033358d078bf8e6bab741 Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Wed, 20 Apr 2016 10:51:22 -0400 Subject: [PATCH] pk: proxy chdir syscall to fesvr --- pk/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pk/syscall.c b/pk/syscall.c index 66c07ef..1c9e234 100644 --- a/pk/syscall.c +++ b/pk/syscall.c @@ -382,6 +382,11 @@ ssize_t sys_writev(int fd, const long* iov, int cnt) return ret; } +int sys_chdir(const char *path) +{ + return frontend_syscall(SYS_chdir, (uintptr_t)path, 0, 0, 0, 0, 0, 0); +} + int sys_getdents(int fd, void* dirbuf, int count) { return 0; //stub @@ -442,6 +447,7 @@ long do_syscall(long a0, long a1, long a2, long a3, long a4, long a5, unsigned l [SYS_getrusage] = sys_stub_nosys, [SYS_getrlimit] = sys_stub_nosys, [SYS_setrlimit] = sys_stub_nosys, + [SYS_chdir] = sys_chdir, }; const static void* old_syscall_table[] = {