* [sisyphus] Возможно ли в хашер пробросить реальную ФС? @ 2013-02-12 9:14 Михаил Радюк 2013-02-12 9:30 ` Dmitry V. Levin 0 siblings, 1 reply; 8+ messages in thread From: Михаил Радюк @ 2013-02-12 9:14 UTC (permalink / raw) To: ALT Linux Sisyphus discussions Здравствуйте! Возникла задача, которая требует монтирования реальной файловой системы в хашер, подскажите возможно ли такое вообще? Судя по http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html вроде возможно, но никак не получается. -- С уважением, Михаил. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 9:14 [sisyphus] Возможно ли в хашер пробросить реальную ФС? Михаил Радюк @ 2013-02-12 9:30 ` Dmitry V. Levin 2013-02-12 10:03 ` Motsyo Gennadi aka Drool 2013-02-12 11:09 ` Михаил Радюк 0 siblings, 2 replies; 8+ messages in thread From: Dmitry V. Levin @ 2013-02-12 9:30 UTC (permalink / raw) To: ALT Linux Sisyphus discussions [-- Attachment #1: Type: text/plain, Size: 393 bytes --] On Tue, Feb 12, 2013 at 01:14:11PM +0400, Михаил Радюк wrote: > Здравствуйте! > Возникла задача, которая требует монтирования реальной файловой > системы в хашер, подскажите возможно ли такое вообще? Судя по > http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html > вроде возможно, но никак не получается. Да, монтирование средствами hasher-priv возможно. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 9:30 ` Dmitry V. Levin @ 2013-02-12 10:03 ` Motsyo Gennadi aka Drool 2013-02-12 11:09 ` Михаил Радюк 1 sibling, 0 replies; 8+ messages in thread From: Motsyo Gennadi aka Drool @ 2013-02-12 10:03 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 12.02.2013 11:30, Dmitry V. Levin пишет: >> Возникла задача, которая требует монтирования реальной файловой >> системы в хашер, подскажите возможно ли такое вообще? Судя по >> http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html >> вроде возможно, но никак не получается. > > Да, монтирование средствами hasher-priv возможно. Так может как-нить можно через это реализовать и проброс ~/.ccache? https://bugzilla.altlinux.org/show_bug.cgi?id=13850 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 9:30 ` Dmitry V. Levin 2013-02-12 10:03 ` Motsyo Gennadi aka Drool @ 2013-02-12 11:09 ` Михаил Радюк 2013-02-12 14:21 ` Dmitry V. Levin 1 sibling, 1 reply; 8+ messages in thread From: Михаил Радюк @ 2013-02-12 11:09 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 12 февраля 2013 г., 13:30 пользователь Dmitry V. Levin <ldv@altlinux.org> написал: > On Tue, Feb 12, 2013 at 01:14:11PM +0400, Михаил Радюк wrote: >> Здравствуйте! >> Возникла задача, которая требует монтирования реальной файловой >> системы в хашер, подскажите возможно ли такое вообще? Судя по >> http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html >> вроде возможно, но никак не получается. > > Да, монтирование средствами hasher-priv возможно. > Пытаюсь примонтировать /mnt/repo в хашер, в чем беда не пойму. Что настроено: cat /etc/hasher-priv/fstab /mnt/repo /mnt/repo bind bind 0 0 cat /etc/hasher-priv/system prefix=~:/tmp/.private allowed_mountpoints=/mnt/repo cat /etc/hasher-priv/user.d/mike user1=mike_a user2=mike_b allowed_mountpoints=/mnt/repo hsh --apt-config=apt.conf_sisyphus --initroot-only ~/hasher-sisyphus При попытке зайти в шелл hsh-shell ~/hasher-sisyphus/ --mount='/mnt/repo' hasher-priv: mnt: expected owner 500, found owner 501 При попытке изменить права chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` ~/hasher-sisyphus/chroot/mnt/repo chgrp: невозможно получить доступ к <</home/mike/hasher-sisyphus/chroot/mnt/repo>>: Нет такого файла или каталога При ручном создании /mnt/repo через hsh-shell --rooter ~/hasher-sisyphus/ не может сменить группу: chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` ~/hasher-sisyphus/chroot/mnt/repo chgrp: изменение группы для <</home/mike/hasher-sisyphus/chroot/mnt/repo>>: Операция не позволена Не пойму куда копать. -- С уважением, Михаил. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 11:09 ` Михаил Радюк @ 2013-02-12 14:21 ` Dmitry V. Levin 2013-02-12 16:59 ` Михаил Радюк 0 siblings, 1 reply; 8+ messages in thread From: Dmitry V. Levin @ 2013-02-12 14:21 UTC (permalink / raw) To: ALT Linux Sisyphus discussions [-- Attachment #1: Type: text/plain, Size: 1689 bytes --] On Tue, Feb 12, 2013 at 03:09:28PM +0400, Михаил Радюк wrote: > 12 февраля 2013 г., 13:30 пользователь Dmitry V. Levin > <ldv@altlinux.org> написал: > > On Tue, Feb 12, 2013 at 01:14:11PM +0400, Михаил Радюк wrote: > >> Здравствуйте! > >> Возникла задача, которая требует монтирования реальной файловой > >> системы в хашер, подскажите возможно ли такое вообще? Судя по > >> http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html > >> вроде возможно, но никак не получается. > > > > Да, монтирование средствами hasher-priv возможно. > > > > Пытаюсь примонтировать /mnt/repo в хашер, в чем беда не пойму. > Что настроено: > cat /etc/hasher-priv/fstab > /mnt/repo /mnt/repo bind bind 0 0 > > cat /etc/hasher-priv/system > prefix=~:/tmp/.private > allowed_mountpoints=/mnt/repo > > cat /etc/hasher-priv/user.d/mike > user1=mike_a > user2=mike_b > allowed_mountpoints=/mnt/repo > > hsh --apt-config=apt.conf_sisyphus --initroot-only ~/hasher-sisyphus > > При попытке зайти в шелл > hsh-shell ~/hasher-sisyphus/ --mount='/mnt/repo' > hasher-priv: mnt: expected owner 500, found owner 501 > > При попытке изменить права > chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` > ~/hasher-sisyphus/chroot/mnt/repo > chgrp: невозможно получить доступ к > <</home/mike/hasher-sisyphus/chroot/mnt/repo>>: Нет такого файла или > каталога Речь идет не о ~/hasher-sisyphus/chroot/mnt/repo, а о вышестоящем ~/hasher-sisyphus/chroot/mnt; либо он должен принадлежать тому же пользователю, что и ~/hasher-sisyphus/chroot, либо, как мне больше нравится, вместо chroot/mnt/ можно использовать chroot/.host/. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 14:21 ` Dmitry V. Levin @ 2013-02-12 16:59 ` Михаил Радюк 2013-02-12 17:20 ` Dmitry V. Levin 0 siblings, 1 reply; 8+ messages in thread From: Михаил Радюк @ 2013-02-12 16:59 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 12 февраля 2013 г., 18:21 пользователь Dmitry V. Levin <ldv@altlinux.org> написал: > On Tue, Feb 12, 2013 at 03:09:28PM +0400, Михаил Радюк wrote: >> 12 февраля 2013 г., 13:30 пользователь Dmitry V. Levin >> <ldv@altlinux.org> написал: >> > On Tue, Feb 12, 2013 at 01:14:11PM +0400, Михаил Радюк wrote: >> >> Здравствуйте! >> >> Возникла задача, которая требует монтирования реальной файловой >> >> системы в хашер, подскажите возможно ли такое вообще? Судя по >> >> http://lists.altlinux.org/pipermail/sisyphus/2008-March/329281.html >> >> вроде возможно, но никак не получается. >> > >> > Да, монтирование средствами hasher-priv возможно. >> > >> >> Пытаюсь примонтировать /mnt/repo в хашер, в чем беда не пойму. >> Что настроено: >> cat /etc/hasher-priv/fstab >> /mnt/repo /mnt/repo bind bind 0 0 >> >> cat /etc/hasher-priv/system >> prefix=~:/tmp/.private >> allowed_mountpoints=/mnt/repo >> >> cat /etc/hasher-priv/user.d/mike >> user1=mike_a >> user2=mike_b >> allowed_mountpoints=/mnt/repo >> >> hsh --apt-config=apt.conf_sisyphus --initroot-only ~/hasher-sisyphus >> >> При попытке зайти в шелл >> hsh-shell ~/hasher-sisyphus/ --mount='/mnt/repo' >> hasher-priv: mnt: expected owner 500, found owner 501 >> >> При попытке изменить права >> chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` >> ~/hasher-sisyphus/chroot/mnt/repo >> chgrp: невозможно получить доступ к >> <</home/mike/hasher-sisyphus/chroot/mnt/repo>>: Нет такого файла или >> каталога > > Речь идет не о ~/hasher-sisyphus/chroot/mnt/repo, а о вышестоящем > ~/hasher-sisyphus/chroot/mnt; либо он должен принадлежать тому же > пользователю, что и ~/hasher-sisyphus/chroot, либо, как мне больше > нравится, вместо chroot/mnt/ можно использовать chroot/.host/. > Заменил /mnt/repo на /.host/repo в конфигурационных файлах, инициировал хашер hsh --apt-config=/home/mike/apt/apt.conf_sisyphus --initroot-only ~/hasher-sisyphus создал .host/repo mkdir ~/hasher-sisyphus/chroot/.host/repo сменил группу на repo chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` ~/hasher-sisyphus/chroot/.host/repo Пытаюсь войти в шелл hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' hasher-priv: .host: expected group 501, found group 500 сменил группу на .host chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` ~/hasher-sisyphus/chroot/.host Захожу в шелл без ошибок, но repo нигде не вижу hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' cd /&&find -type d -name 'repo' find: './var/nobody': Permission denied find: './var/spool/mail': Permission denied find: './var/lock/subsys': Permission denied find: './var/lock/serial': Permission denied find: './var/lock/uucp': Permission denied find: './var/cache/ldconfig': Permission denied find: './.host': Permission denied find: './usr/lib/chkpwd': Permission denied find: './etc/tcb': Permission denied find: './etc/default': Permission denied find: './root': Permission denied find: './lib/modules': Permission denied find: './boot': Permission denied Прошу помощи, я чего-то не понимаю. -- С уважением, Михаил. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 16:59 ` Михаил Радюк @ 2013-02-12 17:20 ` Dmitry V. Levin 2013-02-12 17:36 ` Михаил Радюк 0 siblings, 1 reply; 8+ messages in thread From: Dmitry V. Levin @ 2013-02-12 17:20 UTC (permalink / raw) To: ALT Linux Sisyphus discussions [-- Attachment #1: Type: text/plain, Size: 1252 bytes --] On Tue, Feb 12, 2013 at 08:59:30PM +0400, Михаил Радюк wrote: > Заменил /mnt/repo на /.host/repo в конфигурационных файлах, инициировал хашер > hsh --apt-config=/home/mike/apt/apt.conf_sisyphus --initroot-only > ~/hasher-sisyphus > создал .host/repo > mkdir ~/hasher-sisyphus/chroot/.host/repo > сменил группу на repo > chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` > ~/hasher-sisyphus/chroot/.host/repo > Пытаюсь войти в шелл > hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' > hasher-priv: .host: expected group 501, found group 500 > > сменил группу на .host > chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` > ~/hasher-sisyphus/chroot/.host > > Захожу в шелл без ошибок, но repo нигде не вижу > > hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' > cd /&&find -type d -name 'repo' > find: './var/nobody': Permission denied > find: './var/spool/mail': Permission denied > find: './var/lock/subsys': Permission denied > find: './var/lock/serial': Permission denied > find: './var/lock/uucp': Permission denied > find: './var/cache/ldconfig': Permission denied > find: './.host': Permission denied Доступа на чтение /.host нет, но /.host/repo там есть. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] Возможно ли в хашер пробросить реальную ФС? 2013-02-12 17:20 ` Dmitry V. Levin @ 2013-02-12 17:36 ` Михаил Радюк 0 siblings, 0 replies; 8+ messages in thread From: Михаил Радюк @ 2013-02-12 17:36 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 12 февраля 2013 г., 21:20 пользователь Dmitry V. Levin <ldv@altlinux.org> написал: > On Tue, Feb 12, 2013 at 08:59:30PM +0400, Михаил Радюк wrote: >> Заменил /mnt/repo на /.host/repo в конфигурационных файлах, инициировал хашер >> hsh --apt-config=/home/mike/apt/apt.conf_sisyphus --initroot-only >> ~/hasher-sisyphus >> создал .host/repo >> mkdir ~/hasher-sisyphus/chroot/.host/repo >> сменил группу на repo >> chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` >> ~/hasher-sisyphus/chroot/.host/repo >> Пытаюсь войти в шелл >> hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' >> hasher-priv: .host: expected group 501, found group 500 >> >> сменил группу на .host >> chgrp -- `/usr/libexec/hasher-priv/hasher-priv getugid1 |cut -d: -f2` >> ~/hasher-sisyphus/chroot/.host >> >> Захожу в шелл без ошибок, но repo нигде не вижу >> >> hsh-shell ~/hasher-sisyphus/ --mount='/.host/repo' >> cd /&&find -type d -name 'repo' >> find: './var/nobody': Permission denied >> find: './var/spool/mail': Permission denied >> find: './var/lock/subsys': Permission denied >> find: './var/lock/serial': Permission denied >> find: './var/lock/uucp': Permission denied >> find: './var/cache/ldconfig': Permission denied >> find: './.host': Permission denied > > Доступа на чтение /.host нет, но /.host/repo там есть. > Да, действительно, ls /.host/repo отрабатывает. Спасибо! -- С уважением, Михаил. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-02-12 17:36 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-02-12 9:14 [sisyphus] Возможно ли в хашер пробросить реальную ФС? Михаил Радюк 2013-02-12 9:30 ` Dmitry V. Levin 2013-02-12 10:03 ` Motsyo Gennadi aka Drool 2013-02-12 11:09 ` Михаил Радюк 2013-02-12 14:21 ` Dmitry V. Levin 2013-02-12 16:59 ` Михаил Радюк 2013-02-12 17:20 ` Dmitry V. Levin 2013-02-12 17:36 ` Михаил Радюк
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