[pve-devel] [PATCH] Syscall: add setresuid syscall
Stoiko Ivanov
s.ivanov at proxmox.com
Tue Apr 16 16:23:26 CEST 2019
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
See `man 2 setresuid`. The code was tested with small UIDs (109) and one which
does not fit into 16 bit (100000000), since I wasn't too sure about the workings
of setresuid vs. setresuid32 (see NOTES of the manpage) - it worked with both.
src/PVE/Syscall.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/Syscall.pm b/src/PVE/Syscall.pm
index 0f50c63..a2903b7 100644
--- a/src/PVE/Syscall.pm
+++ b/src/PVE/Syscall.pm
@@ -13,6 +13,7 @@ BEGIN {
close => &SYS_close,
mkdirat => &SYS_mkdirat,
faccessat => &SYS_faccessat,
+ setresuid => &SYS_setresuid,
);
};
--
2.11.0
More information about the pve-devel
mailing list