Bug 231570 - [iOS] Stop including 'util.sb' in the WebContent process' sandbox
Summary: [iOS] Stop including 'util.sb' in the WebContent process' sandbox
Status: REOPENED
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: 231984
Blocks:
  Show dependency treegraph
 
Reported: 2021-10-12 05:47 PDT by Per Arne Vollan
Modified: 2021-10-19 14:35 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.78 KB, patch)
2021-10-12 05:51 PDT, 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-12 05:47:59 PDT
This is a step towards being able to test-compile the sandbox on Open Source builders.
Comment 1 Radar WebKit Bug Importer 2021-10-12 05:49:42 PDT
<rdar://problem/84143956>
Comment 2 Per Arne Vollan 2021-10-12 05:51:12 PDT
Created attachment 440922 [details]
Patch
Comment 3 Brent Fulgham 2021-10-12 10:32:32 PDT
Comment on attachment 440922 [details]
Patch

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

> Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:-38
> -(import "util.sb")

Can any of the other sandboxes use our slimmed-down util.sb?
Comment 4 Per Arne Vollan 2021-10-13 09:32:50 PDT
(In reply to Brent Fulgham from comment #3)
> Comment on attachment 440922 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=440922&action=review
> 
> > Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:-38
> > -(import "util.sb")
> 
> Can any of the other sandboxes use our slimmed-down util.sb?

That is a good point! We're only preprocessing the WP sandbox on iOS. When the other sandboxes are preprocessed as well, we should use the new util.sb there too.

Thanks for reviewing!
Comment 5 EWS 2021-10-13 10:00:48 PDT
Committed r284099 (242927@main): <https://commits.webkit.org/242927@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 440922 [details].
Comment 6 WebKit Commit Bot 2021-10-19 14:35:48 PDT
Re-opened since this is blocked by bug 231984