Bug 225482 - [iOS] Allow file-read* and file-write-data for /dev/null and /dev/zero
Summary: [iOS] Allow file-read* and file-write-data for /dev/null and /dev/zero
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
Keywords: InRadar
Depends on:
Reported: 2021-05-06 14:21 PDT by Brent Fulgham
Modified: 2021-05-06 19:38 PDT (History)
1 user (show)

See Also:

Patch (1.51 KB, patch)
2021-05-06 14:24 PDT, Brent Fulgham
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2021-05-06 14:21:56 PDT
We allow read and write access to /dev/zero and /dev/null in all of our sandboxes, except for Network process on iOS. This is a mistake, and leads to spurious sandbox violation reports. We should allow this to avoid generating these reports, and because these devices are frequently used in low-level programming.
Comment 1 Brent Fulgham 2021-05-06 14:23:30 PDT
Comment 2 Brent Fulgham 2021-05-06 14:24:37 PDT
Created attachment 427935 [details]
Comment 3 Per Arne Vollan 2021-05-06 14:27:11 PDT
Comment on attachment 427935 [details]

Comment 4 EWS 2021-05-06 19:38:27 PDT
Committed r277155 (237442@main): <https://commits.webkit.org/237442@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 427935 [details].