Bug 201347 - [iOS] Remove ubiquity client rule from sandbox
Summary: [iOS] Remove ubiquity client rule from sandbox
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: 2019-08-30 10:50 PDT by Per Arne Vollan
Modified: 2019-12-17 10:13 PST (History)
4 users (show)

See Also:


Attachments
Patch (3.01 KB, patch)
2019-08-30 10:51 PDT, Per Arne Vollan
bfulgham: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Patch (3.01 KB, patch)
2019-10-16 17:19 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 2019-08-30 10:50:15 PDT
This rule is most likely not needed, since we have already blocked all of its associated mach services, and no issues have been reported.
Comment 1 Per Arne Vollan 2019-08-30 10:51:48 PDT
Created attachment 377725 [details]
Patch
Comment 2 Alexey Proskuryakov 2019-08-31 17:22:35 PDT
Comment on attachment 377725 [details]
Patch

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

> Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:-413
> -    (global-name "com.apple.FileCoordination")
> -    (global-name "com.apple.FileProvider")

Are all of these changes intended for this patch?
Comment 3 Per Arne Vollan 2019-10-16 14:41:29 PDT
(In reply to Alexey Proskuryakov from comment #2)
> Comment on attachment 377725 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=377725&action=review
> 
> > Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:-413
> > -    (global-name "com.apple.FileCoordination")
> > -    (global-name "com.apple.FileProvider")
> 
> Are all of these changes intended for this patch?

Yes, as part of removing the ubiquity rule, the explicit deny of these services are not needed anymore.

Thanks for reviewing!
Comment 4 Radar WebKit Bug Importer 2019-10-16 14:44:07 PDT
<rdar://problem/56347708>
Comment 5 Brent Fulgham 2019-10-16 16:07:58 PDT
Comment on attachment 377725 [details]
Patch

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

> Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:-456
> -    (global-name "com.apple.quicklook.ThumbnailsAgent")

Please make sure to test Mail.app after these changes (especially with attachments).
Comment 6 Per Arne Vollan 2019-10-16 16:59:42 PDT
(In reply to Brent Fulgham from comment #5)
> Comment on attachment 377725 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=377725&action=review
> 
> > Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:-456
> > -    (global-name "com.apple.quicklook.ThumbnailsAgent")
> 
> Please make sure to test Mail.app after these changes (especially with
> attachments).

Will do. Thanks for reviewing!
Comment 7 WebKit Commit Bot 2019-10-16 17:01:58 PDT
Comment on attachment 377725 [details]
Patch

Rejecting attachment 377725 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 377725, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Logging in as commit-queue@webkit.org...
Fetching: https://bugs.webkit.org/attachment.cgi?id=377725&action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=201347&ctype=xml&excludefield=attachmentdata
Processing 1 patch from 1 bug.
Processing patch 377725 from bug 201347.
Fetching: https://bugs.webkit.org/attachment.cgi?id=377725
Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Brent Fulgham']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 2 diffs from patch file(s).
patching file Source/WebKit/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
Hunk #2 succeeded at 402 (offset -4 lines).
Hunk #3 FAILED at 409.
Hunk #4 succeeded at 427 (offset -3 lines).
Hunk #5 succeeded at 442 (offset -3 lines).
1 out of 5 hunks FAILED -- saving rejects to file Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Brent Fulgham']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: https://webkit-queues.webkit.org/results/13141008
Comment 8 Per Arne Vollan 2019-10-16 17:19:26 PDT
Created attachment 381136 [details]
Patch
Comment 9 WebKit Commit Bot 2019-10-16 17:36:59 PDT
Comment on attachment 381136 [details]
Patch

Clearing flags on attachment: 381136

Committed r251219: <https://trac.webkit.org/changeset/251219>