feat(libkernel_sys): add chroot path validation #4384
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4384"
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 MarcZX10 on 2026-10-12T08:30:16Z.
What
Carries the
chrootpath-validation implementation from issue #3632 onto currentmain. It returns guest errors for null, empty, missing, and non-directory paths, then explicitly throws for an existing directory because the guest path resolver keeps a fixed root and mount aliases are host paths.This is only the
chrootportion of #3632; other calls from that issue are separate changes.Tested
guest_kernel_sys_tests.ctest --test-dir /tmp/AnyPS5-3632-chroot-build -R '^guest_kernel_sys$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py: passed.git diff --check upstream/main: passed.Checklist
main; no other open PR implements the same function.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T08:36:43Z.
Progress report (
1acfa7f→33c14be)📈 System libraries: 86.37% (+0.01%, +1 implemented functions)
✅ 1 implemented
chroot_nid_postfixImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T08:41:55Z.
The PR description was corrected to use the template section headings (
### What,### Tested,### Checklist) and now passes the local conventions checker. The current hosted conventions result reflects the earlier body. Posting this update to trigger a fresh PR check against the corrected description.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T11:22:27Z.
Windows test: head
8d8a251acmerged onto currentmain3d8ffeb27(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j4: full build 0 errors; ctest (guest_kernel_sys): 1/1 passed;python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T14:01:59Z.
Rebase handoff — rebased onto current
main, authorship unchanged (only aTechnicalDebt.mdunion conflict; both entries kept).Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesTo pick it up:
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:21:49Z.
Closing:
chrootis still a predicted stop (the entry this adds todocs/dev/debt/libkernel_sys.mdsays "not yet observed in a run"), and it throws for an existing directory, so a title that got there would stop anyway. Please reopen with the PPSA99764 log line once a run on main stops at it.Pull request closed