Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116944 - 2.1_pre2 running ebuild as non-root results in permission denied
Summary: 2.1_pre2 running ebuild as non-root results in permission denied
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-12-27 20:06 UTC by Daniel Black (RETIRED)
Modified: 2006-01-27 19:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2005-12-27 20:06:13 UTC
Running ebuild as nonroot user (in portage group) attempts to perform root priv operations like chown/chmod.

Was corrected with 'if (os.getuid() == 0):' before chown (portage.py:2585 or trunk line 2587)


dan@frog ~/gentoo/gentoo-x86/dev-libs/lzo $ ebuild lzo-2.02-r1.ebuild install
Traceback (most recent call last):
  File "/usr/bin/ebuild", line 77, in ?
    a = portage.doebuild(ebuild, arg, portage.root, tmpsettings, debug=debug, cleanup=("noauto" not in portage.features), tree=mytree)
  File "/usr/lib/portage/pym/portage.py", line 2585, in doebuild
    os.chown(logdir, portage_uid, portage_gid)
OSError: [Errno 1] Operation not permitted: '/var/tmp/portage/lzo-2.02-r1/temp/logging'
dan@frog ~/gentoo/gentoo-x86/dev-libs/lzo $ emerge info
Portage 2.1_pre2 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -ggdb3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=" -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect cvs digest distlocks keepwork nostrip sandbox sfperms sign strict stricter test userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dan/gentoo/gentoo-x86"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aac aalib acl acpi adns alsa audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cscope cups curl directfb divx4linux dlloader ecc encode ethereal exif expat extensions fam fastcgi ffmpeg fla flac fortran gd ggi gif glut gmp gnutls gphoto2 gstreamer gtk gtk2 gtkhtml guile hardened hpn i8x0 idn imagemagick imlib ipv6 jack java javacomm jpeg junit kde kdeenablefinal kerberos lcms libgda libwww lzo mad matroska mbox mhash mikmod ming mmx mng motif mozilla mp3 mpeg multitarget mysql nas nptl nptlonly ntlm ogg oggvorbis openal operanom2 pam pcre pdflib perl php pic png postgres ppds python qt quicktime readline samba sdl sguil slp snmp socks5 sox speex spell sqlite sse ssl svga tcltk tetex tiff true-type truetype type1-fonts udev usb userlocales vhosts vorbis x86 xine xinerama xml xml2 xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-12-30 23:28:56 UTC
Released in portage-2.1_pre3
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2006-01-27 19:25:37 UTC
Released in 2.1_pre4