Bug 225482

Summary: [iOS] Allow file-read* and file-write-data for /dev/null and /dev/zero
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: pvollan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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
<rdar://problem/77503594>
Comment 2 Brent Fulgham 2021-05-06 14:24:37 PDT
Created attachment 427935 [details]
Patch
Comment 3 Per Arne Vollan 2021-05-06 14:27:11 PDT
Comment on attachment 427935 [details]
Patch

R=me.
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].