1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 03:11:00 +00:00
serenity/Base/usr
Liav A 5a649d0fd5 Kernel: Return EINVAL when specifying -1 for setuid and similar syscalls
For setreuid and setresuid syscalls, -1 means to set the current
uid/euid/gid/egid value, to be more convenient for programming.
However, for other syscalls where we pass only one argument, there's no
justification to specify -1.

This behavior is identical to how Linux handles the value -1, and is
influenced by the fact that the manual pages for the group of one
argument syscalls that handle ID operations is ambiguous about this
topic.
2021-12-20 11:32:16 +01:00
..
bin Userland: Add support for -S to env command 2021-04-12 14:06:24 +02:00
include Toolchain: Useit.sh finish and added an install target for the libc's Makefile and a bit of ground work for a gcc port 2019-04-29 13:12:20 +02:00
lib Toolchain: Useit.sh finish and added an install target for the libc's Makefile and a bit of ground work for a gcc port 2019-04-29 13:12:20 +02:00
share/man Kernel: Return EINVAL when specifying -1 for setuid and similar syscalls 2021-12-20 11:32:16 +01:00