Skip to content

About the naming: what's "secure" about SecureXPC? #3

Answered by jakaplan
amomchilov asked this question in Q&A
Discussion options

You must be logged in to vote

macOS allows an incoming Mach service connection to come from any process. (Notably this is unlike the XPC connection used when communicating with an XPC Service; in that case incoming connections can only come from the same outermost bundle containing the service.)

As of macOS 11, the XPC C API provides the public function SecCodeCreateWithXPCMessage which allows for determining which process is communicating with the Mach service. That function provides the SecCode which represents signed code which is actively running. With a SecCode instance SecCodeCheckValidity can be called which determines if the running code matches the requirements a user of the SecureXPC API would provide.

Prior…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jakaplan
Comment options

@amomchilov
Comment options

@jakaplan
Comment options

@jakaplan
Comment options

@amomchilov
Comment options

Answer selected by amomchilov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants