-
Notifications
You must be signed in to change notification settings - Fork 59
fix: restrict UID spoofing exclusively to the TEESimulator daemon to prevent root process crashes #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: restrict UID spoofing exclusively to the TEESimulator daemon to prevent root process crashes #42
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "version": "v6.0.1-307", | ||
| "versionCode": 307, | ||
| "zipUrl": "https://github.com/Enginex0/TEESimulator-RS/releases/download/v6.0.1-307/TEESimulator-RS-v6.0.1-307-Release.zip", | ||
| "versionCode": 304, | ||
| "zipUrl": "https://github.com/aartzz/TEESimulator-RS/releases/download/v6.0.1-304/TEESimulator-RS-v6.0.1-309-Release.zip", | ||
|
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== files ==\n'
git ls-files 'module/update.json' 'app/build.gradle.kts' || true
printf '\n== module/update.json ==\n'
if [ -f module/update.json ]; then
cat -n module/update.json
fi
printf '\n== app/build.gradle.kts outline ==\n'
if [ -f app/build.gradle.kts ]; then
ast-grep outline app/build.gradle.kts --view expanded || true
fi
printf '\n== search for version/tag/url generation ==\n'
rg -n --no-heading -S 'versionCode|zipUrl|version|release|download|aartzz|Enginex0|TEESimulator-RS' app/build.gradle.kts module/update.json . || trueRepository: Enginex0/TEESimulator-RS Length of output: 47406 Regenerate
🤖 Prompt for AI Agents |
||
| "changelog": "https://raw.githubusercontent.com/Enginex0/TEESimulator-RS/main/module/changelog.md" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Enginex0/TEESimulator-RS
Length of output: 435
🏁 Script executed:
Repository: Enginex0/TEESimulator-RS
Length of output: 48360
Reset
g_daemon_pidon daemon death.g_daemon_pidis only set during the backdoor handshake and never cleared, so a recycled PID could cause unrelated root transactions to get spoofed to UID 1000. Clear it on teardown or add a liveness check before spoofing.🤖 Prompt for AI Agents