Please help us test the behavior of different Unices
Jochen Saalfeld
jochen at intevation.de
Thu Mar 2 09:44:56 CET 2017
Hi again,
some additional Information from other sources[1]:
NetBSD 6, 7 and current are all the same on multiple architectures:
System: NetBSD:6.1_STABLE:NetBSD 6.1_STABLE (LUNA-$Revision: 6.2 $) #0: Mon
Jan 9 21:39:01 UTC 2017 john at chi.zia.io:/usr/release/obj-vax/sys/arch/vax/
compile/LUNA
sizeof addr.sun_path: 104
Running test with strlen (cwd): 22, name: '/tmp/test-unix-sockets/socket'
getsockname returned '/tmp/test-unix-sockets/socket', addrlen: 106
Running test with strlen (cwd): 22, name: 'socket'
getsockname returned 'socket', addrlen: 106
Running test with strlen (cwd): 126, name: 'socket'
getsockname returned 'socket', addrlen: 106
Running test with strlen (cwd): 1062, name: 'socket'
getsockname returned 'socket', addrlen: 106
Mac OS X (PowerPC, amd64) are the same:
System: Darwin:9.8.0:Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT
2009; root:xnu-1228.15.4~1/RELEASE_PPC
sizeof addr.sun_path: 104
Running test with strlen (cwd): 22, name: '/tmp/test-unix-sockets/socket'
getsockname returned '/tmp/test-unix-sockets/socket', addrlen: 106
Running test with strlen (cwd): 22, name: 'socket'
getsockname returned 'socket', addrlen: 106
Running test with strlen (cwd): 126, name: 'socket'
getsockname returned 'socket', addrlen: 106
Running test with strlen (cwd): 1062, name: 'socket'
getsockname returned 'socket', addrlen: 106
On IBM Power8 running Ubuntu GNU/Linux (ppc64le):
System: Linux:4.4.0-64-generic:#85-Ubuntu SMP Mon Feb 20 17:05:51 UTC 2017
sizeof addr.sun_path: 108
Running test with strlen (cwd): 22, name: '/tmp/test-unix-sockets/socket'
getsockname returned '/tmp/test-unix-sockets/socket', addrlen: 32
Running test with strlen (cwd): 22, name: 'socket'
getsockname returned 'socket', addrlen: 9
Running test with strlen (cwd): 130, name: 'socket'
getsockname returned 'socket', addrlen: 9
Running test with strlen (cwd): 1102, name: 'socket'
getsockname returned 'socket', addrlen: 9
Kind regards,
Jochen
[1] - https://www.reddit.com/r/GnuPG/comments/5ww75f/
please_help_us_test_the_behavior_of_different/deemis8/?context=3
On Wednesday, March 1, 2017 2:22:08 PM CET Justus Winter wrote:
> Hello,
>
> I have written a small test program and I would like to ask you to run
> it on UNIX platforms that you care about. (Care as in you want to be
> able to run GnuPG on it the future).
>
> This program tests how different UNIX implementations cope with UNIX
> domain sockets being created in paths that exceed sizeof (struct
> sockaddr_un.sun_path).
>
> The hypothesis is that it is okay to create sockets there, as long as
> one uses relative paths for bind and connect.
>
> Building and running this program should be as easy as:
>
> % make test-unix-sockets && ./test-unix-sockets
>
> This is an example output:
>
> System: GNU:0.9:GNU-Mach 1.8-686-dbg/Hurd-0.9
> sizeof addr.sun_path: 108
> Running test with strlen (cwd): 22, name: '/tmp/test-unix-sockets/socket'
> getsockname returned '', addrlen: 3
> Running test with strlen (cwd): 22, name: 'socket'
> getsockname returned '', addrlen: 3
> Running test with strlen (cwd): 130, name: 'socket'
> getsockname returned '', addrlen: 3
> Running test with strlen (cwd): 1102, name: 'socket'
> getsockname returned '', addrlen: 3
>
> Please post the results here.
>
>
> Thanks,
> Justus
--
jochen at intevation.de | intevation.de/ | 0541335083214 | PGPkey: 0x64B67DF4
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20170302/bf5f26b4/attachment.sig>
More information about the Gnupg-devel
mailing list