[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 13/16] linux-user: support the setns syscall
From: |
Paul Burton |
Subject: |
[Qemu-devel] [PATCH v2 13/16] linux-user: support the setns syscall |
Date: |
Sat, 21 Jun 2014 23:53:08 +0100 |
Add support for the setns syscall, trivially passed through to the host.
Signed-off-by: Paul Burton <address@hidden>
---
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 0495781..0bbdf61 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9542,6 +9542,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
- [Qemu-devel] [PATCH v2 07/16] linux-user: fix struct target_epoll_event layout for MIPS, (continued)
- [Qemu-devel] [PATCH v2 07/16] linux-user: fix struct target_epoll_event layout for MIPS, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 06/16] linux-user: support strace of epoll_create1, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 08/16] linux-user: respect timezone for settimeofday, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 09/16] linux-user: allow NULL tv argument for settimeofday, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 10/16] linux-user: support timerfd_{create, gettime, settime} syscalls, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 11/16] linux-user: support ioprio_{get, set} syscalls, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 12/16] linux-user: support {name_to, open_by}_handle_at syscalls, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 13/16] linux-user: support the setns syscall,
Paul Burton <=
- [Qemu-devel] [PATCH v2 15/16] linux-user: support the KDSIGACCEPT ioctl, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 14/16] linux-user: support the unshare syscall, Paul Burton, 2014/06/21
- [Qemu-devel] [PATCH v2 16/16] linux-user: support the SIOCGIFINDEX ioctl, Paul Burton, 2014/06/21
- Re: [Qemu-devel] [PATCH v2 00/16] linux-user fixes & improvements, Riku Voipio, 2014/06/27