Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71109 - Current (14/11/04) cvs head portage breaks fetching on selinux.
Summary: Current (14/11/04) cvs head portage breaks fetching on selinux.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-13 18:24 UTC by Stephen Bennett (RETIRED)
Modified: 2004-11-22 18:09 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 Stephen Bennett (RETIRED) gentoo-dev 2004-11-13 18:24:47 UTC
 
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-11-13 18:27:59 UTC
Err, you left off the traceback :)
Filling in info from irc prior to a sys crash, os.close w/in unlockfile fails due to the fd being closed (errno 9).  Aparently there is an avc_denied also.
Spb kindly tag some info here so I don't sound like a total crazed dev...
Comment 2 Stephen Bennett (RETIRED) gentoo-dev 2004-11-13 18:28:48 UTC
Duh. I'm stupid.

Anyway...filing bug on ferringb's request:

>>> Downloading ftp://ftp.gnome.org/pub/gnome/sources/nautilus/2.8/nautilus-2.8.0.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2999, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1891, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2156, in doebuild
    use_info_env=use_info_env,verbosity=verbosity)
  File "/usr/lib/portage/pym/ebuild.py", line 987, in process_phase
    retval=self.__adjust_env(phase,mysettings,myebuild,myroot,**keywords)
  File "/usr/lib/portage/pym/ebuild.py", line 741, in __adjust_env
    if not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly,verbosity=verbosity):
  File "/usr/lib/portage/pym/portage.py", line 1823, in fetch
    portage_locks.unlockfile(file_lock)
  File "/usr/lib/portage/pym/portage_locks.py", line 177, in unlockfile
    os.close(myfd)
OSError: [Errno 9] Bad file descriptor
!!! Couldn't download nautilus-2.8.0.tar.bz2. Aborting.

Syslog has the following to say:
avc:  denied  { entrypoint } for  pid=19250 exe=/usr/bin/python2.3 path=/usr/bin/wget dev=hda6 ino=2097315 scontext=stephen:sysadm_r:portage_fetch_t tcontext=system_u:object_r:bin_t tclass=file

Reproducible every time with cvs head; 2.0.51-r3 works perfectly.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2004-11-22 18:09:30 UTC
was traced back to calling portage_exec.spawn instead of portage_exec.spawn_bash.
Corrected incvs