[gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Strangely, if I exit chroot, I can do the following with no problem: chmod g+s /mnt/gentoo/var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Any pointers to any blockers? Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
you might need to bind /proc into the chroot? BillK On Thu, 2012-02-09 at 18:00 +0700, Pandu Poluan wrote: Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Strangely, if I exit chroot, I can do the following with no problem: chmod g+s /mnt/gentoo/var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Any pointers to any blockers? Rgds,
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
On Thu, Feb 9, 2012 at 18:49, William Kenworthy bi...@iinet.net.au wrote: On Thu, 2012-02-09 at 18:00 +0700, Pandu Poluan wrote: Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Strangely, if I exit chroot, I can do the following with no problem: chmod g+s /mnt/gentoo/var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Any pointers to any blockers? Rgds, you might need to bind /proc into the chroot? Already done that. From outside of chroot: # mount | grep /mnt/gentoo/proc none on /mnt/gentoo/proc type proc (rw) # Note: I just tried keywording util-linux-2.20.1-r1, same error. If push comes to shove, I'll emerge util-linux-2.20.1-r1 on another system and get the binpkg. Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
Pandu Poluan writes: Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Very strange. What is the exact error message? Wonko
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
On Thu, Feb 9, 2012 at 19:32, Pandu Poluan pa...@poluan.info wrote: On Thu, Feb 9, 2012 at 18:49, William Kenworthy bi...@iinet.net.au wrote: On Thu, 2012-02-09 at 18:00 +0700, Pandu Poluan wrote: Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Strangely, if I exit chroot, I can do the following with no problem: chmod g+s /mnt/gentoo/var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Any pointers to any blockers? Rgds, you might need to bind /proc into the chroot? Already done that. From outside of chroot: # mount | grep /mnt/gentoo/proc none on /mnt/gentoo/proc type proc (rw) # Note: I just tried keywording util-linux-2.20.1-r1, same error. If push comes to shove, I'll emerge util-linux-2.20.1-r1 on another system and get the binpkg. Bah, no joy :( Even grabbing the binpkg from another identical system resulted in Permission denied errors: Extracting info * Package:sys-apps/util-linux-2.20.1-r1 * Repository: gentoo * USE:ncurses crypt nls cramfs * FEATURES: preserve-libs sandbox Extracting sys-apps/util-linux-2.20.1-r1 tar: ./bin/mount: Cannot change mode to rws--x--x: Permission denied tar: ./bin/umount: Cannot change mode to rws--x--x: Permission denied tar: ./usr/bin/write: Cannot change mode to rwxr-s--x: Permission denied tar: Exiting with failure status due to previous errors tar failed with status 2 !!! Error Extracting '/usr/portage/packages/sys-apps/util-linux-2.20.1-r1.tbz2' Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
Pandu Poluan writes: In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Does this command work when you enter it manually in the chroot? Maybe FEATURES=-sandbox emerge sys-apps/util-linux works? Wonko
Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
Okay, PROBLEM SOLVED. (Read below) On Thu, Feb 9, 2012 at 19:51, Alex Schuster wo...@wonkology.org wrote: Pandu Poluan writes: Have anyone been having problems emerging sys-apps/util-linux-2.20-r1 on a chroot-ed environment? In my case, it always fail during the following stage: chmod g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write Very strange. What is the exact error message? The error message was Permission denied Trying the exact same chmod command from shell also resulted in Permission denied Then I got suspicious of my kernel (hardened). make menuconfig brought me to GRKERNSEC_CHROOT_CHMOD ... and that's the reason for my problems!! So, before chroot-ing, I did: sysctl -w kernel.grsecurity.chroot_deny_chmod=0 followed by emerge -1av sysvinit util-linux annnddd.. THERE'S JOY IN MUDVILLE!!! :-D (Let it be for the record that this is the *first* time *ever* hardened-sources bit me) Anyway, thanks for the attempts to help, guys! Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan