]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/posix-user: Register `getresuid` to syscall_shim
authorSergiu Moga <sergiu.moga@protonmail.com>
Fri, 29 Jan 2021 17:56:05 +0000 (19:56 +0200)
committerUnikraft <monkey@unikraft.io>
Sat, 15 May 2021 16:57:14 +0000 (16:57 +0000)
Register `getresuid` system call to syscall_shim library.

Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #119

lib/posix-user/Makefile.uk
lib/posix-user/exportsyms.uk
lib/posix-user/user.c

index b4b431dd0da75f5e45bec273a9ff800998010c4e..a8f4f4f370b1c2ba8b037025a120854912cb6185 100644 (file)
@@ -21,3 +21,4 @@ UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setregid-2
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setgroups-2
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += capget-2
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setresuid-3
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += getresuid-3
index 567b56717e501c5bee929b224a3d2b4f52cc8dce..cab1d64021cf773df8b73515edf067753c640476 100644 (file)
@@ -62,7 +62,6 @@ getpgrp
 uk_syscall_e_getpgrp
 uk_syscall_r_getpgrp
 seteuid
-getresuid
 setpwent
 endpwent
 getpwnam_r
@@ -94,3 +93,6 @@ uk_syscall_r_setgroups
 setresuid
 uk_syscall_e_setresuid
 uk_syscall_r_setresuid
+getresuid
+uk_syscall_e_getresuid
+uk_syscall_r_getresuid
index baeeeab61313973efb025e76276c7df2a5a83dc2..7f408033c4cc593a1a8571b3daeafbd97a5a4205 100644 (file)
@@ -108,7 +108,7 @@ int seteuid(uid_t euid __unused)
        return 0;
 }
 
-int getresuid(uid_t *ruid __unused, uid_t *euid __unused, uid_t *suid __unused)
+UK_SYSCALL_R_DEFINE(int, getresuid, uid_t*, ruid, uid_t*, euid, uid_t*, suid)
 {
        return 0;
 }