Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 12 introduces xpc_connection_set_peer_code_sig #33

Open
steven-joruk opened this issue Jun 8, 2021 · 0 comments · May be fixed by #36
Open

macOS 12 introduces xpc_connection_set_peer_code_sig #33

steven-joruk opened this issue Jun 8, 2021 · 0 comments · May be fixed by #36
Labels
enhancement New feature or request

Comments

@steven-joruk
Copy link
Collaborator

This function is a public API which is a better way of handling client validation.

  • We should detect which version of the OS is used at runtime. If it's >= 12 use this function, otherwise use the audit token.
  • Update our API to handle client validation implicitly, e,g. XpcListener::listen(name: impl AsRef<CStr>, peer_code_signing_requirement: Option<impl AsRef<CStr>)

Alternatively, adopt a builder pattern to allow specifying the dispatch queue, flags, etc.

@steven-joruk steven-joruk added the enhancement New feature or request label Jun 8, 2021
@steven-joruk steven-joruk linked a pull request Jul 3, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant