feat(libkernel): implement setregid #4595
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4595"
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 jagrat04 on 2026-10-12T16:27:29Z.
What
Exports
setregid(ROILLZdYZPc) in libkernel, following FreeBSD'ssys_setregidand the existing root credential identity model used bysetuid,seteuid,setegidandsetreuid:0xffffffffuunchanged) are accepted and change nothing, returning 0.std::runtime_error("setregid: unsupported...").GuestCredentials.cppunit test to coversetregidandsetreuiderror paths, and updatesdocs/dev/TechnicalDebt.md.Closes part of #3558.
Tested
tools/check_conventions.py --base origin/main
Unit test assertions in core/libs/tests/GuestCredentials.cpp
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T16:44:33Z.
Progress report (
a60f52e→057b810)📈 System libraries: 86.37% (+0.01%, +1 implemented functions)
✅ 1 implemented
setregid_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T20:09:43Z.
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/debt/libkernel.mdL63Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T21:06:23Z.
Checked against FreeBSD
sys_setregidand the existingsetreuid/setegidmodel: 0 and -1 are accepted and change nothing, other ids throw. Build and ctest pass (guest_credentials), and the test fails to link without the change. Merging.