Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2011 22:28:31 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: HEADS UP: breakage with linux emulation + SA-11:05.unix
Message-ID:  <20111001222831.00003cdc@unknown>
In-Reply-To: <201109301902.44281.jkim@FreeBSD.org>
References:  <4E857719.7060306@freebsd.org> <201109301803.01010.jkim@FreeBSD.org> <201109301902.44281.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Sep 2011 19:02:41 -0400 Jung-uk Kim <jkim@FreeBSD.org> wrote:

> On Friday 30 September 2011 06:02 pm, Jung-uk Kim wrote:
> > [Removed freebsd-security@]
> >
> > On Friday 30 September 2011 04:00 am, FreeBSD Security Officer 
> wrote:
> > > Hi all,
> > >
> > > It appears that the security fix in SA-11:05.unix exposed a bug
> > > in the linux emulation code: Linux has a different size of
> > > sockaddr_un than FreeBSD, and the linux emulation code was
> > > passing socket addresses through without doing any translation
> > > first.
> > >
> > > This appears to break all X-using Linux code -- both applications
> > > and plugins such as the widely-used flash plugin -- and probably
> > > other Linux applications too.
> > >
> > > I am working on a fix for this and will send an updated advisory
> > > out as soon as it's ready.
> >
> > For the impatient, I have written *unofficial* patch for this
> > Linuxulator regression.
> >
> > Please note that I am posting this patch to this ML only because I
> > wanted to point out Linuxulator is actually missing very important
> > feature, i.e., anonymous Unix domain socket.

Did you see
http://student.agh.edu.pl/~mjguzik/linux_sockaddr_un.patch
?

He has a AF_INET and a AF_LOCAL part in his patch. I haven't reviewed
it for correctness (emulation-sense), but maybe it's something to look
at and maybe to add.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



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