View previous topic :: View next topic |
Author |
Message |
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Thu Jul 11, 2013 8:20 am Post subject: shadow-4.1.5.1-r1 install failed [SOLVED] |
|
|
I am having problems updating shadow on a new install of Gentoo. I am still running it from the install CD and doing this in a chroot. It looks like it cannot set SUID permissions for some reason?
Code: |
libtool: install: /usr/bin/install -c vipw /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/sbin/vipw
make[2]: Leaving directory `/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/work/shadow-4.1.5.1/src'
ln -sf newgrp /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/bin/sg
ln -sf vipw /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//usr/sbin/vigr
for i in su; do \
chmod -f 4711 /var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/image//bin/$i; \
done
make[1]: *** [install-am] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/shadow-4.1.5.1-r1/work/shadow-4.1.5.1/src'
make: *** [install-recursive] Error 1
emake failed
* ERROR: sys-apps/shadow-4.1.5.1-r1 failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 3020: Called die
* The specific snippet of code:
* emake DESTDIR="${D}" suidperms=4711 install || die;
|
Last edited by selig on Sun Jul 14, 2013 8:49 am; edited 1 time in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Jul 11, 2013 9:50 am Post subject: |
|
|
Are you sure this is the first error ? |
|
Back to top |
|
|
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Fri Jul 12, 2013 8:11 am Post subject: |
|
|
Yes, there were no errors in the build process - until this one during install phase.
Code: |
livecd ~ # touch test
livecd ~ # chmod 4711 test
chmod: changing permissions of 'test': Permission denied
|
|
|
Back to top |
|
|
selig Guru
Joined: 31 Jul 2005 Posts: 425 Location: Prague, Czech Republic
|
Posted: Sun Jul 14, 2013 8:48 am Post subject: |
|
|
Finally figured it out, it seems that the install cd booted with a hardened kernel which had chroot chmod restriction enabled. Disabled it in /proc/sys/kernel/grsecurity/chroot_deny_chmod and now it's working. |
|
Back to top |
|
|
|