mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
linux-user: add setns and unshare
Add support for the setns and unshare syscalls, trivially passed through to the host. Based on patches by Paul Burton, added configure check. Signed-off-by: Paul Burton <paul@archlinuxmips.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
ab31cda327
commit
9af5c906d1
3 changed files with 34 additions and 0 deletions
|
@ -9610,6 +9610,17 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
break;
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_NR_setns) && defined(CONFIG_SETNS)
|
||||
case TARGET_NR_setns:
|
||||
ret = get_errno(setns(arg1, arg2));
|
||||
break;
|
||||
#endif
|
||||
#if defined(TARGET_NR_unshare) && defined(CONFIG_SETNS)
|
||||
case TARGET_NR_unshare:
|
||||
ret = get_errno(unshare(arg1));
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
unimplemented:
|
||||
gemu_log("qemu: Unsupported syscall: %d\n", num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue