Bug 232247 - [macOS][GPUP] Remove sandbox write access to files
Summary: [macOS][GPUP] Remove sandbox write access to files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-25 10:29 PDT by Per Arne Vollan
Modified: 2021-11-12 08:39 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.75 KB, patch)
2021-10-25 10:31 PDT, Per Arne Vollan
bfulgham: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (1.64 KB, patch)
2021-11-12 08:10 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2021-10-25 10:29:53 PDT
Based on telemetry, remove sandbox write access to files in the GPU process on macOS.
Comment 1 Radar WebKit Bug Importer 2021-10-25 10:30:33 PDT
<rdar://problem/84620023>
Comment 2 Per Arne Vollan 2021-10-25 10:31:57 PDT
Created attachment 442382 [details]
Patch
Comment 3 Brent Fulgham 2021-11-10 14:34:37 PST
Comment on attachment 442382 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=442382&action=review

r=me

> Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:-107
> -        (vnode-type REGULAR-FILE)))

Are we confident this isn't needed to support crash reporting?
Comment 4 Per Arne Vollan 2021-11-12 07:27:36 PST
(In reply to Brent Fulgham from comment #3)
> Comment on attachment 442382 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=442382&action=review
> 
> r=me
> 
> > Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:-107
> > -        (vnode-type REGULAR-FILE)))
> 
> Are we confident this isn't needed to support crash reporting?

I have tried terminating the WebContent process, which also has this rule, and no files are created in '/cores', so I believe we can remove this access.

Thanks for reviewing!
Comment 5 EWS 2021-11-12 07:29:01 PST
Tools/Scripts/svn-apply failed to apply attachment 442382 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 6 Per Arne Vollan 2021-11-12 08:10:12 PST
Created attachment 444069 [details]
Patch
Comment 7 EWS 2021-11-12 08:39:07 PST
Committed r285723 (244182@main): <https://commits.webkit.org/244182@main>

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