macOS sandbox blocks ps-backed recording process identity
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ios, macos, node.js, typescript
- Ambito
- devtools, mobile, operating-systems
Direzione di ricerca
Inizia dal modulo condiviso host-process e segui readProcessStartTime e readProcessCommand fino all'avvio di simctl recordVideo. Su macOS, esamina il percorso /bin/ps esistente e la native probe richiesta, incluso il parsing limitato e il mantenimento dei confini degli argomenti. Il lavoro è completato quando superano i test di sandbox, input malformati, ownership e avvio/arresto della registrazione con un artefatto riproducibile, mentre il comportamento sui sistemi non macOS rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Purpose
Allow iOS simulator recording to establish and verify process ownership inside a macOS sandbox that refuses execution of /bin/ps.
Reproduction
Run a synthetic Node child-process identity query under sandbox-exec -p '(version 1)(allow default)'. On macOS where /bin/ps is setuid, its execution is refused. readProcessStartTime and readProcessCommand return null, and recording startup can fail with simctl recordVideo did not expose a complete process identity.
The shared host-process module currently shells out to ps. A non-privileged native probe using proc_pidinfo(PROC_PIDTBSDINFO) and sysctl(KERN_PROCARGS2) can read the same owned child under this policy. PROC_PIDTBSDINFO needs a nonzero argument to include zombie processes.
Required behavior
- Keep command/start-time ownership checks and fail closed when identity cannot be proven; do not replace ownership with PID liveness alone.
- Bound native reads and preserve argument boundaries before rendering the existing command string.
- Detect changed start identity, zombie state, permission refusal, and exited processes.
- Package the native implementation without a global installation and keep non-macOS behavior unchanged.
Completion evidence
Real sandbox tests on synthetic owned children, malformed/bounded parsing tests, and iOS recording start/stop with a nonempty playable artifact. No benchmark transcripts or private run results are needed.
- Lingua principale
- TypeScript
- Stelle
- 4.7k
- Fork
- 304
- Merge medio
- 11h 29m
- PR unite (30g)
- 514
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/agent-device
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
callstack/agent-device#1869 ·
-
needs-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 32/100
callstack/agent-device#2948 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
callstack/agent-device#2946 ·
-
needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
callstack/agent-device#2940 ·
-
bug ready-for-agent
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
callstack/agent-device#2935 ·
Tutte le issue di callstack/agent-device
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
bcgov/bc-wallet-mobile#4761 · 1 commento ·
-
external-issue to-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100