Skip to content

ipc security #413

@Safari77

Description

@Safari77

On linux, there are better ways to do the "check if process already running" and send messages.

One is abstract sockets via std::os::linux::net::SocketAddrExt, use SO_PEERCRED to check that connecting UID matches your own UID.

The other is zbus, dbus for rust which is best for desktop integration. If the request_name(...) fails because the name is taken, you know the app is running. https://crates.io/crates/zbus

On Windows you could also use named pipes
https://learn.microsoft.com/en-us/windows/win32/ipc/named-pipe-security-and-access-rights

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions