trilemma-dev / SecureXPC

A simple and secure XPC framework for Swift
MIT License
75 stars 15 forks source link

`XPCAnonymousServer` now supports `startAndBlock()` #52

Closed jakaplan closed 2 years ago

jakaplan commented 2 years ago

It now exactly mimics the implementation used by XPCMachServer. While in most cases this wouldn't be useful and start() should be used instead, by providing parity it means API users can test out running a Mach service (except for potentially the root access it has) with identical usage of SecureXPC.

jakaplan commented 2 years ago

@amomchilov thoughts? I know we've discussed this in the past. Having given it a bunch more though I think this is the best approach because of its consistency. It's true that in many cases it wouldn't be useful, but on balance I think that's okay.

amomchilov commented 2 years ago

Interesting thought. My thoughts on this are purely speculative, I haven't gotten to the stage where I'm testing my Mach service yet.

I'll give some feedback when I get to that point.