From: Florian Weimer <fweimer@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: libc-alpha@sourceware.org, Jorgen Hansen <jhansen@vmware.com>
Subject: Re: [RFC PATCH 0/2] Add AF_VSOCK support to getnameinfo(3) and getaddrinfo(3)
Date: Thu, 06 Oct 2016 11:19:00 -0000 [thread overview]
Message-ID: <3649baeb-be14-fa8a-f1af-7ac3637d0547@redhat.com> (raw)
In-Reply-To: <20160930111040.GB16491@stefanha-x1.localdomain>
On 09/30/2016 01:10 PM, Stefan Hajnoczi wrote:
> On Thu, Sep 29, 2016 at 03:25:55PM +0200, Florian Weimer wrote:
>> * Stefan Hajnoczi:
>>
>>> Many existing programs use getnameinfo(3) and getaddrinfo(3).
>>> Porting programs to support AF_VSOCK is easy if the library
>>> functions can handle this address family. Without support in glibc
>>> each program needs to duplicate address parsing code and it becomes
>>> harder to port programs.
>>
>> What has changed since the previous discussion?
>>
>> <https://sourceware.org/ml/libc-help/2015-08/msg00004.html>
>>
>> How do you expect that applications will know that they have to pass
>> AF_VSOCK to getaddrinfo instead of AF_UNSPEC?
>
> For example ncat(1) has --unixsock and --udp command-line options. A
> --vsock option can be added. At that point the program knows to use
> AF_VSOCK and the same getaddrinfo(3) code path can be used by TCP, UDP,
> UNIX, and vsock.
ncat doesn't use getaddrinfo AFAICS, so this isn't going to help it.
The larger nmap codebase has a call to getaddrinfo, but the code leading
to it assumes 16-bit port numbers, so it won't be able to use
getaddrinfo either.
Do you have a better example?
Is there a test guest system which has NFS over AF_VSOCK running? It
looks to me that AF_VSOCK is fundamentally insecure, and I'm not sure if
it can be fixed.
Florian
next prev parent reply other threads:[~2016-10-06 11:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 10:27 Stefan Hajnoczi
2016-09-29 10:27 ` [RFC PATCH 1/2] getnameinfo: Add AF_VSOCK support Stefan Hajnoczi
2016-09-29 10:27 ` [RFC PATCH 2/2] getaddrinfo: " Stefan Hajnoczi
2016-10-06 11:04 ` Florian Weimer
2016-09-29 13:26 ` [RFC PATCH 0/2] Add AF_VSOCK support to getnameinfo(3) and getaddrinfo(3) Florian Weimer
2016-09-30 11:11 ` Stefan Hajnoczi
2016-10-06 9:07 ` Stefan Hajnoczi
2016-10-06 11:19 ` Florian Weimer [this message]
2016-10-07 14:02 ` Florian Weimer
2016-12-05 15:58 ` Stefan Hajnoczi
2016-12-05 16:02 ` Florian Weimer
2016-12-06 13:29 ` Stefan Hajnoczi
2016-10-07 15:05 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3649baeb-be14-fa8a-f1af-7ac3637d0547@redhat.com \
--to=fweimer@redhat.com \
--cc=jhansen@vmware.com \
--cc=libc-alpha@sourceware.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).