RESOLVED FIXED 209339
[Cocoa] Deny access to database mapping service
https://bugs.webkit.org/show_bug.cgi?id=209339
Summary [Cocoa] Deny access to database mapping service
Per Arne Vollan
Reported 2020-03-20 08:34:36 PDT
On macOS and iOS, the WebContent process should not have access to "com.apple.lsd.mapdb".
Attachments
Patch (10.55 KB, patch)
2020-03-20 08:53 PDT, Per Arne Vollan
no flags
Patch (10.87 KB, patch)
2020-03-20 09:17 PDT, Per Arne Vollan
no flags
Patch (11.32 KB, patch)
2020-03-20 13:15 PDT, Per Arne Vollan
no flags
Patch (11.34 KB, patch)
2020-03-23 12:50 PDT, Per Arne Vollan
no flags
Patch (11.39 KB, patch)
2020-03-23 13:52 PDT, Per Arne Vollan
no flags
Patch (11.34 KB, patch)
2020-03-23 15:55 PDT, Per Arne Vollan
no flags
Patch (11.01 KB, patch)
2020-03-24 09:31 PDT, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2020-03-20 08:35:48 PDT
Per Arne Vollan
Comment 2 2020-03-20 08:53:41 PDT
Per Arne Vollan
Comment 3 2020-03-20 09:17:56 PDT
Per Arne Vollan
Comment 4 2020-03-20 13:15:32 PDT
Brent Fulgham
Comment 5 2020-03-20 17:15:00 PDT
Comment on attachment 394114 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394114&action=review r=me > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:107 > +#import <MobileCoreServices/MobileCoreServices.h> Does this need to be inside PLATFORM(IOS) or anything? It is available on all Cocoa ports? EWS seems happy, so I guess it does!
Per Arne Vollan
Comment 6 2020-03-20 17:27:14 PDT
Comment on attachment 394114 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394114&action=review >> Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:107 >> +#import <MobileCoreServices/MobileCoreServices.h> > > Does this need to be inside PLATFORM(IOS) or anything? It is available on all Cocoa ports? EWS seems happy, so I guess it does! It is inside PLATFORM(IOS_FAMILY), but the section was too long for it to be visible in the diff :)
Per Arne Vollan
Comment 7 2020-03-20 17:27:58 PDT
Comment on attachment 394114 [details] Patch Thanks for reviewing!
Simon Fraser (smfr)
Comment 8 2020-03-20 17:52:56 PDT
Comment on attachment 394114 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394114&action=review > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:284 > + auto r = adoptCF(UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, CFSTR("text/html"), 0)); r could use a better name. Does it even need one?
EWS
Comment 9 2020-03-20 18:10:47 PDT
Committed r258803: <https://trac.webkit.org/changeset/258803> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394114 [details].
Jacob Uphoff
Comment 10 2020-03-23 07:38:28 PDT
Reverted r258803 for reason: This revision caused many layout tests and 10 API tests to start failing/crashing Committed r258841: <https://trac.webkit.org/changeset/258841>
Per Arne Vollan
Comment 11 2020-03-23 12:50:57 PDT
Per Arne Vollan
Comment 12 2020-03-23 13:52:41 PDT
Per Arne Vollan
Comment 13 2020-03-23 15:55:25 PDT
EWS
Comment 14 2020-03-23 17:15:29 PDT
Committed r258891: <https://trac.webkit.org/changeset/258891> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394315 [details].
WebKit Commit Bot
Comment 15 2020-03-23 18:30:20 PDT
Re-opened since this is blocked by bug 209459
Per Arne Vollan
Comment 16 2020-03-24 09:31:22 PDT
EWS
Comment 17 2020-03-24 10:14:49 PDT
Committed r258915: <https://trac.webkit.org/changeset/258915> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394373 [details].
Note You need to log in before you can comment on or make changes to this bug.