Rather than opening the binding file, checking for advisory lock, reading a
authorderaadt <deraadt@openbsd.org>
Sun, 17 Jul 2022 03:08:58 +0000 (03:08 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 17 Jul 2022 03:08:58 +0000 (03:08 +0000)
commit125e612249e7e7e68f06de8dfd5a1f6a187a27d2
treeac64c0120a8e02bb5b2d36de5b4b0dcf442e317d
parent228ae42ec3fb26c9c7117a0b7983fcd901a24884
Rather than opening the binding file, checking for advisory lock, reading a
piece of it for the address, opening a socket, and providing the address to
the RPC clnt layer.. do all these steps with the magic system call ypconnect(2)
which performs these steps without other system calls, and provides a socket
which is not readily abuseable for other purposes.
ok jmatthew, miod
lib/libc/yp/yp_all.c
lib/libc/yp/yp_bind.c
lib/libc/yp/ypinternal.h