AnyPS5/core/libs/prx/libkernel
Mouad-Scriptz-0 bc5bfd0ed6 feat(libkernel): export setuid, setreuid, setgroups and getgroups
`setuid`, `setreuid` and `setgroups` are absent imports of XPSemu
(PPSA97358) and PS5MC (PPSA99420) on `main`. The guest process is modelled
as root with ids 0, as `seteuid` and `setegid` already assume: `setuid`
accepts 0 and `setreuid` 0 or -1 per id and change nothing, any other id
throws. `setgroups` keeps the supplementary group list as FreeBSD's
`kern_setgroups` does (`NGROUPS_MAX` 1023, an empty list leaves the
effective group as the only entry, a first entry other than 0 throws) and
the new `getgroups` reports it. `guest_credentials` covers the accepted
ids, the default list, a set list, an empty list and the EINVAL/EFAULT
cases.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit d12b062074dcf64bff694800d77f7261adf6f59e)
2026-10-11 18:55:22 +00:00
..
Aio/src fix(libkernel): preserve EINVAL in AIO completions 2026-10-10 08:42:19 +02:00
AppMetadata fix(kernel): skip the download0 mount when param.json cannot be read 2026-10-08 16:07:18 +02:00
Apr Merge pull request #2789 from tototomate123/fix/hfw-apr-split 2026-10-11 09:32:21 +02:00
DirectMemory fix(libkernel): keep stack protection inside the stack and never throw while restoring it 2026-10-11 02:28:03 -05:00
Equeue fix(libkernel): report a level-triggered equeue event once per wait 2026-10-11 11:28:34 +00:00
EventFlag/src feat(runtime): timed waits, sync primitive fixes, heap and RTC fixes, unattended-run switches 2026-09-26 19:00:39 -07:00
File Merge pull request #3428 from MarcZX100/codex/fix-libkernel-open-empty-path-3308 2026-10-11 13:55:48 +02:00
Module fix(loader): support main-module sceKernelDlsym 2026-10-11 11:50:44 +02:00
Pthread Merge pull request #3484 from AchrafReyani/feat/libkernel-pthread-mutexattr-gettype 2026-10-11 13:53:23 +02:00
Semaphore fix(libkernel): accept a zero count in sceKernelSignalSema 2026-10-10 16:12:43 +00:00
Socket Merge pull request #3487 from DariusHQ/feat/libkernel-underscore-ioctl 2026-10-11 13:54:41 +02:00
SyncOnAddress/src fix(libkernel): throw on a size-0 _umtx_op timeout that is not a valid timespec 2026-10-11 11:13:33 +02:00
System feat(libkernel): export setuid, setreuid, setgroups and getgroups 2026-10-11 18:55:22 +00:00
Time fix(libkernel): let exception delivery interrupt timed mutex and rwlock waits on Windows 2026-10-11 11:20:40 +02:00
CMakeLists.txt feat(libkernel): export setuid, setreuid, setgroups and getgroups 2026-10-11 18:55:22 +00:00
KernelErrors.hpp refactor(kernel): share SCE kernel error codes through KernelErrors.hpp 2026-09-27 13:32:28 +07:00
Unimplemented.cpp feat(libkernel): implement thread cancellation 2026-10-10 11:32:09 +02:00