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

UWP actually supports IPC over UDS (Similar to Win32) #4714

Open
mhandb opened this issue Jul 31, 2024 · 0 comments
Open

UWP actually supports IPC over UDS (Similar to Win32) #4714

mhandb opened this issue Jul 31, 2024 · 0 comments

Comments

@mhandb
Copy link

mhandb commented Jul 31, 2024

Issue description

I wanted to use libzmq as a UWP client with the "ipc://" protocol.
I have quickly seen that the build disable IPC for UWP.
But I do not see why IPC this is problematic for UWP when I read the implementation.
Then I changed the CMake to enable IPC for UWP apps and then created a test app.

There is no issue giving that the app has the proper access right on the UDS file.
20240731_173914
And the WACK (Windows App Certification Kit) test passes:
image

It is the server responsibility to grant the access right either to a specific UWP app using its SID or to ALL_APPLICATION_PACKAGES

This access right concern is something outside of the scope of zmq, and developers which uses UWP clients to communicate with system service are used to deals with these access rights.

I created a PR to with the modification I made to build it for my UWP client:
mhandb#1 (Still in draft)

Environment

  • libzmq version (commit hash if unreleased): 4.3.5
  • OS: Windows 10

Minimal test code / Steps to reproduce the issue

  1. build with set(CMAKE_SYSTEM_NAME WindowsStore)
  2. try connect to an IPC endpoint using ipc://<some_absolute_path>

What's the actual result? (include assertion message & call stack if applicable)

An exception is raised saying that the protocol is not supported

What's the expected result?

The IPC protocol should be supported starting from Windows10 (build 17061)

@mhandb mhandb changed the title UWP actually supports IPC over UDS (Similar to Win UWP actually supports IPC over UDS (Similar to Win32) Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant