|
From: | Michael Tokarev |
Subject: | Re: [PATCH] qemu-sockets: fix unix socket path copy (again) |
Date: | Wed, 1 Sep 2021 12:20:23 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 01.09.2021 12:12, Daniel P. Berrangé wrote:
Seems right to me, however there are some notes in libc bits/socket.h /* Structure large enough to hold any socket address (with the historical exception of AF_UNIX). */ And also this https://idea.popcount.org/2019-12-06-addressing/#fn:sockaddr_storage I must say I feel confused by those comments :) Is it large enough or not??From 'man unix(7)'
I quoted this very place in other thread yesterday. And also included the kernel code which actually does this. But the question here is about different issue: is sockaddr_un larger than sockaddr_storage? /mjt
[Prev in Thread] | Current Thread | [Next in Thread] |