From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: "Dmitry V. Levin" <ldv@altlinux.org>
Cc: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] hasher-priv и binfmt_misc
Date: Sun, 31 Aug 2008 04:13:47 +0300
Message-ID: <20080831011337.GA14271@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]
В новую сборку qemu я добавил опцию -binfmt-misc-friendly, которая
позволяет использовать флаги 'O' и 'P' в binfmt_misc. Что бы передать эту
опцию в qemu я использую обёртку, которую запускает binfmt_misc. Обёртка
выглядит так:
#!/.host/sh
/.host/qemu-arm.bin -binfmt-misc-friendly "$@"
`
Я добавил в hasher код генерации этой обёртки(у меня в git).
Однако, при тестировании всплыла ошибка. Инициализация чрута завершается
ошибкой:
hasher-priv: slave: chrootuid: execve: /.host/entry: Exec format error
Если же сделать просто sudo chroot ~/hasher/chroot /.host/entry, всё
работает корректно. Без обёртки проблем, также, не наблюдается.
Думаю, это ошибка в binfmt_misc. Недавно одну я там уже словил. Вопрос в
том, что такого делает hasher-priv, что ошибка проявляется? Без
hasher-priv ошибку воспроизвести мне пока не удаётся. Есть идеи?
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next reply other threads:[~2008-08-31 1:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 1:13 Kirill A. Shutemov [this message]
2008-08-31 8: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=20080831011337.GA14271@localhost.localdomain \
--to=kirill@shutemov.name \
--cc=devel@lists.altlinux.org \
--cc=ldv@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