ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] hasher mknod
Date: Wed, 26 Mar 2008 19:39:44 +0300
Message-ID: <20080326163944.GC32738@wo.int.altlinux.org> (raw)
In-Reply-To: <47EA732B.9020605@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1819 bytes --]

On Wed, Mar 26, 2008 at 07:00:43PM +0300, Vitaly Ostanin wrote:
> Dmitry V. Levin пишет:
> > On Wed, Mar 26, 2008 at 06:25:27PM +0300, Vitaly Ostanin wrote:
> >> Dmitry V. Levin пишет:
> >>> On Wed, Mar 26, 2008 at 06:03:04PM +0300, Vitaly Ostanin wrote:
> >>>> Здравствуйте.
> >>>>
> >>>> Скажите, в hasher есть возможность разрешить mknod в chroot ? То,
> >>>> что делает hsh-fakedev, для использования драйверов nvidia не годится.
> >>> В hasher-priv есть mount, в сочетании с /etc/hasher-priv/fstab этого
> >>> должно быть достаточно.
> >> Как тяжело жалкому человечку общаться с высшим разумом... Имеется в
> >> виду монтирование /dev ? Где можно посмотреть примеры
> >> /etc/hasher-priv/fstab для не виртуальных fs ?
> > 
> > Разумеется, в /etc/fstab
> > 
> > Вот вам несколько искусственный, однако вполне рабочий пример:
> > $ grep ^/ /etc/hasher-priv/fstab
> > /dev /dev/my bind bind
> > $ /usr/libexec/hasher-priv/hasher-priv getconf |xargs -r grep ^allowed_mountpoints=
> > allowed_mountpoints=/proc,/dev/pts,/dev/my
> > $ hsh --ini
> > $ chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` ~/hasher/chroot/dev/my
> > $ hsh-shell --mount=/dev/my
> > 
> > Разумеется, имя /dev/my взято произвольно, возможные совпадения случайны.
> 
> Спасибо. Я экспериментировал с разными вариантами указания /dev и
> /dev/my. Не заработало, видимо, из-за
> $ grep ^/ /etc/hasher-priv/fstab
> /dev /dev/my auto defaults

Конечно, в 4-ом столбце среди параметров монтирования должно быть слово
bind, это же обычный fstab.

> Я так понял, что в этом примере /dev/my - путь относительно
> хост-системы, а не chroot.

Нет, это путь в чруте, я обычно использую /.host/что-то-там

> Это можно явно указать в man hasher-priv.conf ?

Патчи приветствуются.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-03-26 16:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 15:03 Vitaly Ostanin
2008-03-26 15:10 ` Dmitry V. Levin
2008-03-26 15:25   ` Vitaly Ostanin
2008-03-26 15:52     ` Dmitry V. Levin
2008-03-26 16:00       ` Vitaly Ostanin
2008-03-26 16:39         ` Dmitry V. Levin [this message]
2008-03-27 14:33       ` [sisyphus] hasher mount (was: hasher mknod) Vitaly Ostanin
2008-03-27 15:24         ` [sisyphus] hasher mount 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=20080326163944.GC32738@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git