feat(libkernel): implement getuid, geteuid, getgid, getegid and issetugid #1650
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1650"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-08T15:39:10Z.
What
Part of #1578.
getuid,geteuid,getgidandgetegidare absent imports that block 20 to 23 of the 34 relinking catalog titles, andissetugidblocks 15; none had an open PR.They return 0, the root identity of a jailbroken process, and
issetugidreturns 0 (credentials never changed). The host user and group are not exposed to the guest. The values are not verified on a console, so they are recorded inTechnicalDebt.md; the NIDs resolve by name (getpidis exported the same way).Tested
Linux: full build,
libkernel.prxexports the five symbols;tools/check_conventions.py --base upstream/mainpasses. No title run.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T17:08:25Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL40docs/dev/TechnicalDebt.mdL40docs/dev/TechnicalDebt.mdL40Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T21:26:21Z.
Progress report (
4b005b2→a294b80)📈 System libraries: 84.78% (+0.02%, +5 implemented functions)
✅ 5 implemented
getegid_nid_postfixgeteuid_nid_postfixgetgid_nid_postfixgetuid_nid_postfixissetugid_nid_postfixImported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-09T04:42:41Z.
Two homebrew catalog titles stop on these at load on Linux
mainf1451396(catalog release, relinked withrelinker --registry, run in a sandbox): PPSA99003 ProsperoTV 01.000.030 ongeteuid(tvpHe5kBO4E) and PPSA99002 ProsperoLight 01.000.090 ongetegid(72rYuYoDTWk).Of the 38 catalog apps we ran, 26 import
geteuidand 23 importgetegid; the others stop on something else first onmain.Edit: with this PR merged onto
f1451396(same sandbox), both apps get past these: ProsperoTV's next stop isHTxb6gmexa0(seteuid, #1748) and ProsperoLight's is4oKwKmeOKjM(setegid, #1748). All five functions of this PR resolve in both load traces (39 -> 33 and 50 -> 45 unresolved imports), nothing new appears.Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T11:58:08Z.
Thanks for testing it with the catalog titles. The remaining failures (
seteuid/setegid) are covered by #1748, so there are no pending changes here.Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:45:46Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
a294b80d, merged ontomaind70b8998in one build with 38 other PRs that had no Windows run.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by Pedroj-64 on 2026-10-09T15:58:28Z.
Thanks @popcoder565 for the Windows run: it builds and the full suite passes. There are no pending changes here.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:04:25Z.
Checked: build + full ctest (518/518) on top of current main, CI green on the head, no other open PR implements these exports. The returned values (0, root identity;
issetugid0) are unverified on a console and are recorded inTechnicalDebt.mdunder "Unknown function info"; shadPS4 returns 1 forgetuidbut only as a PS4 stub. Merging.Please add a small guest test in a follow-up PR that pins the five return values, so a later change to them shows up in ctest.