iOS sandbox: installs read the lease's folder through a grant
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ios, typescript
- Bereich
- mobile-dev, security
Rechercherichtung
Read ADR 0103 §7 and the B12 row, then trace passthrough() and folderOf with the provided rg search. Start with the named seams in src/daemon/dispatcher-exec.test.ts:50, the createDriver tests, and e2e/slow-ios-sandbox.test.ts. Done means every B12 case passes and the slow lane confirms lease-folder installs and addmedia work while paths outside that folder are refused.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Part of #1648.
Scope
On a sandboxed worker simlock simctl install and addmedia read a file the client uploaded to its lease's folder: the simulator gets read access to that folder, and nothing else of the worker, once per boot.
If it goes wrong, installs from the lease folder fail on a sandboxed worker, or a simulator reads another lease's folder.
Technical spec
Commit b037ae2a0.
Rows
- Behaviours: B12
- Interfaces: I11
- Existing code: X14, X15, X16
Facts
none
Modules touched
daemon (dispatcher-exec.ts), core (driver.ts passthrough context), drivers/ios (passthrough-rules.ts, jail-grants.ts, src/drivers/ios/index.ts:617 where IosSimctlDriver.passthrough passes the root pid, the issue call and the grants writer), e2e/slow-ios-sandbox.test.ts, website (using-devices/copy-files.mdx). Searches: rg "folderOf|passthrough\(" src/daemon src/core src/drivers/ios.
Rules in play
- ADR 0103 (Accepted — not yet implemented): the sections named on each line below; the feature's rows hold the shapes.
- ADR 0103 §7: a file-class grant for the lease folder, once per boot, not bound to a pid.
- ADR 0067: the lease folder and
cwdofdevice.execstay as they are; the folder is resolved before the command. - Documentation rule 9:
copy-files.mdxsays what a sandboxed worker installs from.
Tests
Seams: src/daemon/dispatcher-exec.test.ts:50; createDriver for the driver side; the slow-lane file for the read.
- B12: On a sandboxed worker a
device.execofsimctl installoraddmediagives the simulator read access to the lease's folder before the command, once per boot of the simulator, a boot known by the rootlaunchd_simpid X4 records (T2), so a boot simlock did not make (B17) counts as new; the install then reads the file: first install; second install (no second grant); install after a recovery boot (granted again); install after a boot simlock did not make, root pid changed (granted again);addmedia; other verbs (no grant); grant not acknowledged in 2 s (refused, next install tries again); file self-issue of the lease class refused; without the sandbox (no grant)
Done when
- Every unit case of B12 passes.
- Slow lane (real simulator):
e2e/slow-ios-sandbox.test.tsuploads an.ipaand a photo to the lease folder on a sandboxed worker andsimlock simctl installandaddmediasucceed; a worker path outside the folder is refused by the sandbox.
Out of scope
agent-device installs from an upload (a known gap).
Depends on
- #2045 because:
jail-grants.tsand the acknowledgement read (I10, I12) - #2044 because:
src/drivers/ios/passthrough-rules.ts
Written by an agent.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 730
- Forks
- 44
- Ø Merge
- 15 Std. 28 Min.
- Gemergte PRs (30 T.)
- 387
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus callstackincubator/simlock
-
bug:new
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
callstackincubator/simlock#2088 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug:new
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
callstackincubator/simlock#2080 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
task:ready
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
callstackincubator/simlock#2079 ·
Maintainer antworten meist innerhalb von 1 Tag
-
platform:ios task:ready
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 18/100
callstackincubator/simlock#2078 ·
Maintainer antworten meist innerhalb von 1 Tag
-
iOS copy: keep the app database at the copy's own UDIDEvtl. vergeben @V3RON hat das heute übernommen. Offenplatform:ios task:ready
callstackincubator/simlock#2077 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstackincubator/simlock
Ähnliche Issues
-
prio:low scope:hud
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
OliverRomhagen/vrigstad-joyride#953 ·
Maintainer antworten meist innerhalb von 1 Tag
-
review-followup
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
griffinwork40/agent-afk#5446 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
kacper-szewczyk/Ticknest#346 ·
Maintainer antworten meist innerhalb von 1 Tag
-
echarts geo: a GeoJSON URL that returns 200 with a body that is not JSON is fetched on each refreshOffenbug plugin/echarts/geo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Yeachan-Heo/gajae-code#8230 ·
Maintainer antworten meist innerhalb von 1 Tag