cloudtoid / interprocess

A cross-platform shared memory queue for fast communication between processes (Interprocess Communication or IPC).
MIT License
184 stars 26 forks source link

Add support for setting MMF security [feature request] #5

Closed cocowalla closed 3 years ago

cocowalla commented 3 years ago

If the 2 processes are running as the same user, there is no problem with security. But if you want 2 processes with different users to communicate, you will get "access denied".

In .NET Framework this was possible using MemoryMappedFileSecurity - but, bizarelly, Microsoft have chosen not to add support for this in .NET Core/.NET 5/6.

The request here is to add the interop plumbing to allow setting an ACL for MMFs (I did something similar a while back, when Microsoft made the same bizare decision for named pipes; not sure if they ever did implement ACLs there).

prezaei commented 3 years ago

Duplicate of #6