lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAL0=qud_=gWxtTAbDoAsFps_xsnMa4pKS2MK0BoQRpEWd3wukw@mail.gmail.com>
Date:   Mon, 14 Jan 2019 13:51:24 -0600
From:   Brian Kroth <bpkroth@...il.com>
To:     netdev@...r.kernel.org
Subject: ss --vsock list peer endpoint by vm name/pid?

Hi all, I'm trying to do some development with the AF_VSOCKs.  When a
VM connects to an endpoint in the host, I'd like to be able to resolve
the peer CID endpoint to a VM name, or even better its process id.
I've tried using getsockopt SO_VM_SOCKETS_PEER_HOST_VM_ID, but the
value returned is just an int that I can't seem to correlate with any
VM lookup table I can find.  This question is probably a cross between
the qemu/kvm (the hypervisor I'm using atm) side and the vsock side,
but given the ss utility from the iproute2 package has at least
partial support for enumerating details about active vsock connections
(cid) I thought I'd start here.  Anyone have any suggestions?

Thanks,
Brian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ