From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyeyt-0000rF-El for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wyeyn-0005Md-Q4 for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:39 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:51604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyeyn-0005MX-FX for qemu-devel@nongnu.org; Sun, 22 Jun 2014 06:26:33 -0400 Received: by mail-we0-f171.google.com with SMTP id q58so5595700wes.30 for ; Sun, 22 Jun 2014 03:26:32 -0700 (PDT) Sender: Paul Burton From: Paul Burton Date: Sun, 22 Jun 2014 11:25:45 +0100 Message-Id: <1403432748-4679-14-git-send-email-paul@archlinuxmips.org> In-Reply-To: <1403432748-4679-1-git-send-email-paul@archlinuxmips.org> References: <1403432748-4679-1-git-send-email-paul@archlinuxmips.org> Subject: [Qemu-devel] [PATCH v3 13/16] linux-user: support the setns syscall List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Paul Burton Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton --- Changes in v3: - None. Changes in v2: - None. --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list index 147f579..d5b8033 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -1191,6 +1191,9 @@ #ifdef TARGET_NR_set_mempolicy { TARGET_NR_set_mempolicy, "set_mempolicy" , NULL, NULL, NULL }, #endif +#ifdef TARGET_NR_setns +{ TARGET_NR_setns, "setns" , NULL, NULL, NULL }, +#endif #ifdef TARGET_NR_setpgid { TARGET_NR_setpgid, "setpgid" , NULL, NULL, NULL }, #endif diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d8bd773..b630ef3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9563,6 +9563,12 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #endif +#ifdef TARGET_NR_setns + case TARGET_NR_setns: + ret = get_errno(setns(arg1, arg2)); + break; +#endif + default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num); -- 2.0.0