feat(libkernel): serve the console CA list from the host trust store #5144

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/5144 into main
MarcZX10 commented 2026-10-13 12:52:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T12:52:59Z.


What

Carries screamm’s independently authored commit for host-provided /<sandbox word>/common/cert/CA_LIST.cer, preserving the original commit author. The path provider lazily creates a read-only bundle from the Windows ROOT/CA stores or Linux SSL_CERT_FILE/standard distro bundle paths. If no certificates are available, opening the file fails with ENOENT.

Overlap: #5280 carries the same original commit and is the broader implementation, adding Windows trust filtering, resolver precedence tests and Windows title evidence. This PR is retained as the minimal carry, but should be reviewed/merged only if maintainers want this narrower implementation; it is functionally superseded by #5280. The two PRs add the same provider and certificate tests and should not both be merged.

Tested

The carried implementation was reported tested on Windows 11 with MinGW-w64 GCC 15.2.0 and on Ubuntu 24.04 with GCC 13.3. On Windows, guest_sandbox_certificates and filesystem tests passed; the reported non-AGC suite had one known patched_libraries failure and one guest_raise_exception timeout. On Linux, guest_sandbox_certificates passed 20/20 and all 335 guest_* tests passed twice. No title run was reported for this PR. Current rebased source files pass MinGW GCC 12 syntax-only checks; conventions pass. Full current-head Windows/Linux test execution is not claimed.

AI-assisted: yes.

Checklist

  • AI-assisted: yes
  • Rebased on current main
  • One topic
  • No comments in code except technical debt
  • No investigation files or third-party code added
  • Generic behavior
  • Depends on: none
  • Overlap: #5280 is the broader duplicate; do not merge both
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4843519992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5144). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T12:52:59Z. --- ### What Carries screamm’s independently authored commit for host-provided `/<sandbox word>/common/cert/CA_LIST.cer`, preserving the original commit author. The path provider lazily creates a read-only bundle from the Windows ROOT/CA stores or Linux `SSL_CERT_FILE`/standard distro bundle paths. If no certificates are available, opening the file fails with `ENOENT`. **Overlap:** #5280 carries the same original commit and is the broader implementation, adding Windows trust filtering, resolver precedence tests and Windows title evidence. This PR is retained as the minimal carry, but should be reviewed/merged only if maintainers want this narrower implementation; it is functionally superseded by #5280. The two PRs add the same provider and certificate tests and should not both be merged. ### Tested The carried implementation was reported tested on Windows 11 with MinGW-w64 GCC 15.2.0 and on Ubuntu 24.04 with GCC 13.3. On Windows, `guest_sandbox_certificates` and filesystem tests passed; the reported non-AGC suite had one known `patched_libraries` failure and one `guest_raise_exception` timeout. On Linux, `guest_sandbox_certificates` passed 20/20 and all 335 `guest_*` tests passed twice. No title run was reported for this PR. Current rebased source files pass MinGW GCC 12 syntax-only checks; conventions pass. Full current-head Windows/Linux test execution is not claimed. AI-assisted: yes. ### Checklist - [x] AI-assisted: yes - [x] Rebased on current main - [x] One topic - [x] No comments in code except technical debt - [x] No investigation files or third-party code added - [x] Generic behavior - [x] Depends on: none - [x] Overlap: #5280 is the broader duplicate; do not merge both
github-actions[bot] commented 2026-10-13 13:14:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T13:14:34Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#4994 core/libs/prx/libc/src/General.cpp L120-121
#5091 core/libs/prx/libkernel/File/src/SandboxCertificates.cpp
core/libs/tests/GuestSandboxCertificates.cpp
#5280 core/libs/prx/libc/src/General.cpp L41, L120-122, L305
core/libs/prx/libkernel/CMakeLists.txt L16, L80, L272
core/libs/prx/libkernel/File/src/SandboxCertificates.cpp
core/libs/tests/GuestSandboxCertificates.cpp
docs/dev/debt/libkernel.md L119
core/libs/prx/libkernel/File/src/SandboxCertificates.cpp
core/libs/tests/GuestSandboxCertificates.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146383939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5144#issuecomment-6146383939). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T13:14:34Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4994 | `core/libs/prx/libc/src/General.cpp` [L120-121](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libc/src/General.cpp#L120-L121) | | | | #5091 | | | `core/libs/prx/libkernel/File/src/SandboxCertificates.cpp`<br>`core/libs/tests/GuestSandboxCertificates.cpp` | | #5280 | `core/libs/prx/libc/src/General.cpp` [L41](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libc/src/General.cpp#L41), [L120-122](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libc/src/General.cpp#L120-L122), [L305](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libc/src/General.cpp#L305)<br>`core/libs/prx/libkernel/CMakeLists.txt` [L16](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libkernel/CMakeLists.txt#L16), [L80](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libkernel/CMakeLists.txt#L80), [L272](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/core/libs/prx/libkernel/CMakeLists.txt#L272)<br>`core/libs/prx/libkernel/File/src/SandboxCertificates.cpp` <br>`core/libs/tests/GuestSandboxCertificates.cpp` <br>`docs/dev/debt/libkernel.md` [L119](https://github.com/boykopovar/AnyPS5/blob/0df6e295c52e7cd6afa394ed35513bd252045c74/docs/dev/debt/libkernel.md#L119) | | `core/libs/prx/libkernel/File/src/SandboxCertificates.cpp`<br>`core/libs/tests/GuestSandboxCertificates.cpp` |
oneandonlydean commented 2026-10-14 02:31:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:31:44Z.


Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159573515 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5144#issuecomment-6159573515). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T02:31:44Z. --- Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5144
No description provided.