ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] hasher - что за ботва? :(
@ 2003-10-14 12:03 Vitaly Lugovsky
  2003-10-14 12:08 ` Dmitry V. Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Vitaly Lugovsky @ 2003-10-14 12:03 UTC (permalink / raw)
  To: devel


hsh ~/HSH /usr/src/RPM/SRPMS/ocaml-3.07-alt2.src.rpm
Components: hasher
Processing pkglists... hasher done
Processing srclists...  hasher done
Creating component releases... hasher done
Creating global release file... done
Appending MD5Sum... hasher done
All your base are belong to us!!!
chgrp: изменение группы для `.': Operation not permitted
chgrp: изменение группы для `dev': Operation not permitted




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] hasher - что за ботва? :(
  2003-10-14 12:03 [devel] hasher - что за ботва? :( Vitaly Lugovsky
@ 2003-10-14 12:08 ` Dmitry V. Levin
  2003-10-14 13:13   ` [devel] Re: hasher - chrooted shell Alexey Tourbin
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2003-10-14 12:08 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Tue, Oct 14, 2003 at 04:03:36PM +0400, Vitaly Lugovsky wrote:
> hsh ~/HSH /usr/src/RPM/SRPMS/ocaml-3.07-alt2.src.rpm
> Components: hasher
> Processing pkglists... hasher done
> Processing srclists...  hasher done
> Creating component releases... hasher done
> Creating global release file... done
> Appending MD5Sum... hasher done
> All your base are belong to us!!!
> chgrp: изменение группы для `.': Operation not permitted
> chgrp: изменение группы для `dev': Operation not permitted

Неплохо бы почитать документацию, что ли.


-- 
ldv

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [devel] Re: hasher - chrooted shell
  2003-10-14 12:08 ` Dmitry V. Levin
@ 2003-10-14 13:13   ` Alexey Tourbin
  2004-07-17 15:50     ` Dmitry V. Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Tourbin @ 2003-10-14 13:13 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Tue, Oct 14, 2003 at 04:08:39PM +0400, Dmitry V. Levin wrote:
> On Tue, Oct 14, 2003 at 04:03:36PM +0400, Vitaly Lugovsky wrote:
> > hsh ~/HSH /usr/src/RPM/SRPMS/ocaml-3.07-alt2.src.rpm
> > Components: hasher
> > Processing pkglists... hasher done
> > Processing srclists...  hasher done
> > Creating component releases... hasher done
> > Creating global release file... done
> > Appending MD5Sum... hasher done
> > All your base are belong to us!!!
> > chgrp: изменение группы для `.': Operation not permitted
> > chgrp: изменение группы для `dev': Operation not permitted
> 
> Неплохо бы почитать документацию, что ли.

PS: получить урезанное подобие шелла в чруте можно так:

$ cat | /usr/lib/hasher-priv/chrootuid2.sh ~/build/chroot /bin/sh

ldv: является ли жестко прошитое </dev/null в
/usr/lib/hasher-priv/hasher-priv принципиальным?  Иначе можно было бы
более естественно получить более естественый shell.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Re: hasher - chrooted shell
  2003-10-14 13:13   ` [devel] Re: hasher - chrooted shell Alexey Tourbin
@ 2004-07-17 15:50     ` Dmitry V. Levin
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry V. Levin @ 2004-07-17 15:50 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Tue, Oct 14, 2003 at 05:13:20PM +0400, Alexey Tourbin wrote:
> PS: получить урезанное подобие шелла в чруте можно так:
> 
> $ cat | /usr/lib/hasher-priv/chrootuid2.sh ~/build/chroot /bin/sh
> 
> ldv: является ли жестко прошитое </dev/null в
> /usr/lib/hasher-priv/hasher-priv принципиальным?  Иначе можно было бы
> более естественно получить более естественый shell.

Собирать пакеты и "получить более естественый shell" - это две
противоречащие друг другу задачи.  Разумеется, hasher в первую очередь
предназначен для решения первой из них.

В новой версии hasher'а появилась возможность решать и вторую задачу тоже:
$ use_pty=yes mountpoints=/dev/pts \
/usr/lib/hasher-priv/chrootuid2.sh workdir/chroot /bin/runas -bash bash

При этом нужно разрешить запускающему эту команду пользователю создавать в
сборочном чруте /dev/tty и /dev/ptmx, а также монтировать туда /dev/pts.

См. документацию, там это всё есть.


-- 
ldv

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-17 15:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 12:03 [devel] hasher - что за ботва? :( Vitaly Lugovsky
2003-10-14 12:08 ` Dmitry V. Levin
2003-10-14 13:13   ` [devel] Re: hasher - chrooted shell Alexey Tourbin
2004-07-17 15:50     ` Dmitry V. Levin

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