Remember to check entitlement before communicating over XPC with another WebKit process. This needs to be done to make sure that it really is a WebKit process on the other end.
Created attachment 405271 [details] Patch
Created attachment 405366 [details] Patch
Thanks for reviewing!
Created attachment 405410 [details] Patch
Created attachment 405453 [details] Patch
Comment on attachment 405453 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405453&action=review R=me > Source/WebKit/Shared/Cocoa/XPCEndpoint.mm:47 > + WTFLogAlways("Audit token does not have required entitlement"); Should we just say what entitlement in the error message?
Created attachment 405569 [details] Patch
(In reply to Brent Fulgham from comment #6) > Comment on attachment 405453 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=405453&action=review > > R=me > > > Source/WebKit/Shared/Cocoa/XPCEndpoint.mm:47 > > + WTFLogAlways("Audit token does not have required entitlement"); > > Should we just say what entitlement in the error message? Fixed. Thanks for reviewing!
Committed r265087: <https://trac.webkit.org/changeset/265087> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405569 [details].
<rdar://problem/66331689>