From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] xvfb-run -a
Date: Fri, 26 Sep 2008 20:56:44 +0400
Message-ID: <20080926165624.GA11506@wo.int.altlinux.org> (raw)
In-Reply-To: <200809262040.01406.shrek@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 2879 bytes --]
On Fri, Sep 26, 2008 at 08:39:58PM +0400, Valery V. Inozemtsev wrote:
> В сообщении от 25 сентября 2008 Dmitry V. Levin написал(a):
> > On Thu, Sep 25, 2008 at 05:19:48AM +0000, Alexey Tourbin wrote:
> > > On Mon, Sep 22, 2008 at 03:00:24PM +0400, Dmitry V. Levin wrote:
> > > > > Когда в хост-системе уже запущен X сервер, то в сборочном чруте
> > > > > xvfb-run с опцией "-a" (автоматический подбор свободного номера)
> > > > > вообще не работает. Причем xvfb-run в таком случае не отваливает.
> > > > >
> > > > > [builder@solemn ~]$ xvfb-run -a /bin/echo 666
> > > > > xauth: creating new authority file /usr/src/.Xauthority
> > > > > _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
> > > >
> > > > Нет, это UNIXCreateListener, стало быть, дело не в хост-системе, а том,
> > > > что в сборочном чруте остались неисправимые следы предыдущего запуска
> > > > сервера, возможно, даже целый X сервер.
> > >
> > > По-моему, дело в хост-системе. В начисто сформированном чруте всё это
> > > воспроизводится.
> > >
> > > $ hsh --init && hsh-install xvfb-run && hsh-run -- sh -c 'cd; xvfb-run -a
> > > /bin/echo 666' ...
> > > <13>Sep 25 05:16:55 rpmi: xorg-xvfb-2:1.5.1-alt1 installed
> > > <13>Sep 25 05:16:55 rpmi: xvfb-run-1.3-alt1 installed
> > > xauth: creating new authority file /usr/src/.Xauthority
> > > _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
> > > _XSERVTransMakeAllCOTSServerListeners: server already running
> > > Fatal server error:
> > > Cannot establish any listening sockets - Make sure an X server isn't
> > > already running
> >
> > Тогда это regression в SocketCreateListener.
>
> нет, это abstract socket
> $ netstat -l | grep X11
> unix 2 [ ACC ] STREAM LISTENING 664311 @/tmp/.X11-unix/X0
> unix 2 [ ACC ] STREAM LISTENING 664312 /tmp/.X11-unix/X0
>
> проделки RH
> commit 2afe206ec9569e0d62caa6d91c3fb057b0efa23d
> Author: Adam Jackson <ajax@redhat.com>
> Date: Wed Mar 5 20:48:59 2008 -0500
>
> Add support for the abstract socket namespace under Linux.
>
> Unlike normal unix sockets, the abstract namespace is not bound to the
> filesystem. This has some notable advantages; /tmp need not exist, the
> socket directory need not have magic permissions, etc. xtrans servers
> will listen on both the normal and abstract socket endpoints; clients
> will attempt to connect to the abstract socket before connecting to the
> corresponding filesystem socket.
>
> Based on a patch by Bill Crawford.
Это известный класс граблей:
abstract namespace не имеет никаких разграничений доступа; можно легко и
непринуждённо устроить DoS, так что X server нельзя будет запустить совсем.
Так что я считаю это изменение ошибочным.
Надо откатить и написать в upstream.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-09-26 16:56 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 5:30 ` [devel] perl-Tk-804.028-alt1: i586 rebuild failed [36] Alexey Tourbin
2008-09-16 11:15 ` Dmitry V. Levin
2008-09-16 11:34 ` Alexey Tourbin
2008-09-16 11:41 ` Sergey Bolshakov
2008-09-18 6:34 ` Alexey Tourbin
2008-09-16 11:42 ` [devel] Xvfb input Dmitry V. Levin
2008-09-16 11:44 ` Dmitry V. Levin
2008-09-16 11:50 ` Valery V. Inozemtsev
2008-09-25 15:23 ` Alexey Tourbin
2008-09-22 7:00 ` [devel] xvfb-run -a Alexey Tourbin
2008-09-22 11:00 ` Dmitry V. Levin
2008-09-22 11:07 ` Dmitry V. Levin
2008-09-22 11:17 ` Alexey Gladkov
2008-09-22 11:21 ` Dmitry V. Levin
2008-09-22 11:27 ` [devel] fakeroot (was: xvfb-run -a) Alexey Gladkov
2008-09-22 11:34 ` Kirill A. Shutemov
2008-09-22 11:41 ` [devel] fakeroot Alexey Gladkov
2008-09-22 14:11 ` [devel] xvfb-run -a Alexey I. Froloff
2008-09-22 14:26 ` Damir Shayhutdinov
2008-09-22 12:19 ` Dmitry V. Levin
2008-09-23 20:11 ` Dmitry V. Levin
2008-09-25 5:19 ` Alexey Tourbin
2008-09-25 10:10 ` Dmitry V. Levin
2008-09-26 16:39 ` Valery V. Inozemtsev
2008-09-26 16:56 ` Dmitry V. Levin [this message]
2008-09-26 18:01 ` Valery V. Inozemtsev
2008-09-26 19:05 ` Dmitry V. Levin
2008-09-26 19:09 ` Mikhail Gusarov
2008-09-26 20:58 ` Dmitry V. Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080926165624.GA11506@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git