From aff67586909974c3cbe571cf4293847ce38bb182 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Thu, 7 Apr 2016 23:42:16 +0900 Subject: sandbox: ホームディレクトリに chdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sandbox/child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/child.c b/sandbox/child.c index 9b2dc17..c52dc11 100644 --- a/sandbox/child.c +++ b/sandbox/child.c @@ -35,7 +35,7 @@ noreturn void poe_child_do(struct playground *pg, if (!pw) bug("getpwnam() failed"); - checked_syscall(chdir("/tmp")); + checked_syscall(chdir(pw->pw_dir)); checked_syscall(setsid()); gid_t grps[] = { POE_GID }; checked_syscall(setgroups(1, grps)); // set supplementary group IDs -- cgit v1.2.3