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

Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Mocanu Viorel Gabriel <gabi.mocanu98@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #115

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

index 493fb159dc583614d8899405d556cd6d663b6516..d80c3fbfafd37b2dfb3f2cb77de18ba0b8fd42c2 100644 (file)
@@ -17,3 +17,4 @@ UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += getgroups-2
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += getresgid-3
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setgid-1
 UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setreuid-2
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setregid-2
index 6d9986b073873754a4fc55f8528febbe6b5942b2..539cc474607bead949ac9d3ceac2d02c973f4926 100644 (file)
@@ -84,3 +84,6 @@ uk_syscall_r_getresgid
 setreuid
 uk_syscall_e_setreuid
 uk_syscall_r_setreuid
+setregid
+uk_syscall_e_setregid
+uk_syscall_r_setregid
index 4d3983995db7303c47ab9f53b8ef0c7cb2f8226c..e582135bd2039289a6804cfc24089dfe27e6e78e 100644 (file)
@@ -252,7 +252,7 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
        return 0;
 }
 
-int setregid(gid_t rgid __unused, gid_t egid __unused)
+UK_SYSCALL_R_DEFINE(int, setregid, gid_t, rgid, gid_t, egid)
 {
        return 0;
 }