[Bug 60201] New: Implement SIO_AF_UNIX_GETPEERPID ioctl
http://bugs.winehq.org/show_bug.cgi?id=60201 Bug ID: 60201 Summary: Implement SIO_AF_UNIX_GETPEERPID ioctl Product: Wine Version: 11.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: winsock Assignee: wine-bugs@list.winehq.org Reporter: me@purplesyringa.moe Target Milestone: --- Distribution: --- Windows allows programs to retrieve the PID of the other side connected to a Unix-domain socket with the SIO_AF_UNIX_GETPEERPID socket ioctl. This is roughly equivalent to getsockopt(SO_PEERCRED) on Unix. It'd be nice to see this ioctl implemented. I'm not exactly sure how this option behaves if the socket is transferred to another process, but as far as I can tell, Linux retains the old PID, and I'd assume Windows behaves similarly, since otherwise there is no correct answer if a socket handle is open in two processes at the same time. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60201 Zeb Figura <z.figura12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com --- Comment #1 from Zeb Figura <z.figura12@gmail.com> --- What needs this? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60201 --- Comment #2 from Alisa Sireneva <me@purplesyringa.moe> --- It's mostly used by userland socketpair() implementations, since Windows offers no native socketpair() or abstract unix-domain sockets, and thus sockets have to be tied to filesystem paths that can be raced. Ocaml uses it (https://github.com/ocaml/ocaml/blob/7ed5cf7f8e9d236e1650ac8418f88174523b15df...), qemu uses it too (https://github.com/qemu/qemu/blob/ae4f3443209ab154b48b706a146e5f557ab147cb/u...) though I guess it's not something you want to run under Wine. I also want to use it in an IPC library. The popularity here is a little hard to measure, since most of the uses are transitive; all I know is that someone bothered to implement it and googling "socketpair on Windows" mostly yields snippets that are either insecure or use SIO_AF_UNIX_GETPEERPID. There are also some other uses, e.g. dbus seemingly uses it for security (https://dbus.freedesktop.org/doc/api/html/dbus-sysdeps-win_8c_source.html), and glib exposes the API (https://github.com/winlibs/glib/blob/ca9d6adf53e11099045a6d51116dd0b678faa1f...) and it may be transitively used by PHP, but I'm not sure. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60201 Ken Sharp <imwellcushtymelike@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla