mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
bsd-user: Implement get/set[resuid/resgid/sid] and issetugid.
Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182425.3163-17-kariem.taha2.7@gmail.com>
This commit is contained in:
parent
e4446e0a2c
commit
932683c3d4
2 changed files with 104 additions and 0 deletions
|
@ -315,6 +315,34 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
ret = do_bsd_setregid(arg1, arg2);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_getresuid: /* getresuid(2) */
|
||||
ret = do_bsd_getresuid(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_getresgid: /* getresgid(2) */
|
||||
ret = do_bsd_getresgid(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_setresuid: /* setresuid(2) */
|
||||
ret = do_bsd_setresuid(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_setresgid: /* setresgid(2) */
|
||||
ret = do_bsd_setresgid(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_getsid: /* getsid(2) */
|
||||
ret = do_bsd_getsid(arg1);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_setsid: /* setsid(2) */
|
||||
ret = do_bsd_setsid();
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_issetugid: /* issetugid(2) */
|
||||
ret = do_bsd_issetugid();
|
||||
break;
|
||||
|
||||
|
||||
/*
|
||||
* File system calls.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue