4 ms·
Unfortunately the version included in git for Windows doesn't and you have to emulate sockets using magic files instead...
by mjg59 2y ago
Unfortunately the version included in git for Windows doesn't and you have to emulate sockets using magic files instead...
- Joker_vD 2y agoWhat is so great about Unix sockets that e.g. a normal TCP socket bound to localhost or even a named pipe can not do properly?
- wiktor-k 2y agoThe server can get the calling process info [0], which may be useful for local access control. TCP sockets cannot distinguish clients like that. [0]: https://docs.rs/tokio/latest/tokio/net/struct.UnixStream.html#method.peer_cred https://docs.rs/tokio/latest/tokio/net/struct.UnixStream.htm...
- dijit 2y agoUNIX Sockets are more flexible than named pipes; * You can use them for more than two processes communicating (eg. a server process with potentially multiple client processes connecting); * They are bidirectional; * They support passing kernel-verified UID / GID credentials between processes; * They support passing file descriptors between processes; * They support packet and sequenced packet modes. TCP only grants you 2 of these extra features (sequenced packet mode/bidirection), leaving a giant hole in security in the process.
- Joker_vD 2y agoThe named pipes, at least on Windows, also support all of that except for passing UID/GID and file handles.
- wiktor-k 2y agoAFAIR you can choose to use Windows OpenSSH or the other one during Git for Windows installation. [0] [0]: https://duckduckgo.com/?q=git+for+Windows+openssh&t=fpas&iax=images&ia=images&iai=https%3A%2F%2Fwww.softwaretestingo.com%2Fwp-content%2Fuploads%2F2022%2F06%2FInstall-GIT-on-Windows-11-OpenSSH.png https://duckduckgo.com/?q=git+for+Windows+openssh&t=fpas&iax...