Signed-off-by: Stoiko Ivanov <s.iva...@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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to