Please help us test the behavior of different Unices

Jochen Saalfeld jochen at intevation.de
Wed Mar 1 15:48:26 CET 2017


Hi Justus,

System: Linux:4.9.11-1-ARCH:#1 SMP PREEMPT Sun Feb 19 13:45:52 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

Cheers,
Jochen

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/20170301/8b3ca2a7/attachment.sig>


More information about the Gnupg-devel mailing list