WIP: Document external elfldr helper-payload elevation proof #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-blackbearreloaded/ps5-native-app-boilerplate!1
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/sandbox-elevation-poc"
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?
Summary
This PR demonstrates the original external helper-payload elevation design.
It does not add a privilege API to kstuff.
The sandboxed application:
/datais denied;9021;PPSA99790process and elevate it externally.
After the helper succeeds, the application writes, reopens, reads, and
byte-verifies
/data/hello-from-sandbox.txt.The helper recognizes only
PPSA99790. It is an additional executable payloadthat must be transmitted and run for each elevation attempt; it is not code
that executes inside the sandboxed application itself.
This PR also adds repository-relative source, metadata, presentation, asset,
and app-root-file build inputs, plus
make sandbox-elevation-ffpfscand focuseddocumentation.
Relationship to the newer design
This proof predates the direct kstuff request implemented by
PR #2.
PR #2 removes the additional elfldr payload and instead lets the application
request a predefined, caller-only data-access profile from compatible kstuff.
Validation
Host checks passed under WSL:
make format-checkmake lintmake test(3 GoogleTest and 5 tooling integration tests)make app(default boilerplate regression build)make sandbox-elevation-ffpfscHardware validation passed on PS5 firmware 6.02 using the exact attached
package:
0x80020002;06020004, the exacttarget PID, and
result=0;/data/hello-from-sandbox.txtcontained:2121, klog3232, and elfldr9021remained healthy.Artifact
PPSA99790.ffpfsc(11,730,944 bytes)SHA-256:
4e69a70388ae611231617457090aa613b5838fd7b7d167795fd2b6c4a9ec6f44The package is attached in a PR comment.
Scope
This example requires an owner-started compatible kstuff/kernel-payload
environment and elfldr on TCP port
9021. It is not enabled by default, doesnot change console settings, and does not claim compatibility beyond the
validated environment.
Hardware-validated FFPFSC for this PR:
PPSA99790.ffpfsc4e69a70388ae611231617457090aa613b5838fd7b7d167795fd2b6c4a9ec6f44The artifact produced
/data/hello-from-sandbox.txtwithhello from the sandboxed appon firmware 6.02 and closed cleanly afterward.Pull request closed