Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2025 13:51:15 -0700
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Rick Macklem <rick.macklem@gmail.com>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 79d0f4474653 - main - rpcbind: Ensure krpc is present.
Message-ID:  <aEdJQybzSOzR3BS0@cell.glebi.us>
In-Reply-To: <CAM5tNy6-xtDYQPw6vr588e2r=tX76pWZnKPczwaCrZ5j5XnCEw@mail.gmail.com>
References:  <202506091053.559ArJ8k043104@gitrepo.freebsd.org> <aEbKLniIuHd4xuq7@kib.kiev.ua> <CAM5tNy7uGWg4gOsy%2BM7_vneObuszzxNhGAJF-6rd%2Byjqc00QeA@mail.gmail.com> <aEbPE5oG47SuN2y0@kib.kiev.ua> <CAM5tNy6-xtDYQPw6vr588e2r=tX76pWZnKPczwaCrZ5j5XnCEw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 09, 2025 at 01:28:30PM -0700, Rick Macklem wrote:
R> My vague recollection (I'll admit I cannot be bothered looking at the
R> older code)
R> is that rpcbind would accept queries on a AF_LOCAL (unix domain) socket for
R> local RPC processes.
R> 
R> glebius@ does not want RPCs to be done over AF_LOCAL sockets (he would
R> have to explain why), so he created an RPC layer in the krpc for netlink as an
R> alternative and converted all utilities that were doing RPCs over AF_LOCAL
R> sockets to use it.

Not exactly. I don't want kernel RPC to userland to use AF_LOCAL. A process to
a process RPC of course continues to use AF_LOCAL.

What would be better for rpcbind: to skip providing kernel RPC services if
krpc(4) not detected at startup, or to autoload krpc?  The latter makes it safe
for a scenario when NFS is instantiated at a later runtime of a machine, when
rpcbind already runs. The former scenario would require a restart of rpcbind.

-- 
Gleb Smirnoff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aEdJQybzSOzR3BS0>