Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2021 18:55:49 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        Gleb Popov <arrowd@freebsd.org>, "Daniel O'Connor" <darius@dons.net.au>, freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: What to use in place of abstract unix sockets?
Message-ID:  <YbTYFaA4WvJOfJw9@kib.kiev.ua>
In-Reply-To: <f6cc691e-c709-8c9c-1325-aee14f09ebc1@grosbein.net>
References:  <CALH631kYAz%2B_=p6VUhxzx0tz8eox804PCK5A9POxQkZTdThZCQ@mail.gmail.com> <F0BE714E-E25B-4A49-AA6E-B0E906374446@dons.net.au> <CALH631m8P_NG3nTZ1JQ2hhZMTrAMuuGjS8Ahz_qDMu1bFDCzkw@mail.gmail.com> <58874E76-8541-46BF-A197-C984D6A869DF@dons.net.au> <CALH631nVvp2Ra4RYzEpPkQ-bi_sgqiQ5_XxrP35mTx=8R7dODg@mail.gmail.com> <f6cc691e-c709-8c9c-1325-aee14f09ebc1@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 11, 2021 at 11:20:33PM +0700, Eugene Grosbein wrote:
> 11.12.2021 16:59, Gleb Popov wrote:
> 
> > EXDEV: Cross-device link
> > 
> > This might be because the chroot's target directory is an nullfs mount. Am
> > I right that it isn't possible to create hard links that span nullfs mount
> > points?
> 
> It is not possible to create hard links for source and destination directories
> with different st_dev values as per stat(2), this includes nullfs,
> each of which has its own st_dev id.

The VOP_UNP_BIND() and VOP_UNP_CONNECT() vops are bypassed to the lower
fs. It means that if you bind(2) or connect(2) on unix domain socket
that is visible through nullfs mount, effectively you are doing the bind
or connect operation on the lower filesystem.

That said, implementing 'abstract' unix socket addresses would be nice.



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