Bug 115416 - yum keeps rpm file handle open when spawning children
yum keeps rpm file handle open when spawning children
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-02-12 00:47 EST by Russell Coker
Modified: 2014-01-21 17:48 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-25 04:38:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Russell Coker 2004-02-12 00:47:08 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)

Description of problem:
avc:  denied  { read } for  pid=2116 exe=/sbin/ldconfig path=/var/cache/yum/development/packages/nss_ldap-207-6.i386.rpm dev=hda1 ino=440249 scontext=root:sysadm_r:ldconfig_t tcontext=root:object_r:var_t tclass=file

Above is the error message returned when a library package is installed on an SE Linux system.  The file handle for the rpm is inherited by ldconfig from either YUM or RPM.  Not sure which, if it's not done by yum then please re-assign to RPM.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Install a library package.    

Expected Results:  Should not have inherited the open file.

Additional info:
Comment 1 Seth Vidal 2004-02-12 00:56:13 EST
yum never calls ldconfig directly so I'm guessing this is happening
during the %post  of the rpm install.

Also changing this to test1 so it can be more easily picked up in
Comment 2 Jeff Johnson 2004-02-12 08:02:11 EST
file handle is RDONLY at EOF, yes.

There's a whole class of problems here, not just ldconfig,
and possibly not just the *.rpm file handle.

Can you describe the context and goal of the policy so that
I can try to address the entire class of problems across
all packages in the distro please?
Comment 3 Jeff Johnson 2004-02-25 04:38:09 EST
Handled by imposing FD_CLOSEXEC on fdno's 3-100.

UPSTREAM becasue the better fix is to do in yum itself.

Note You need to log in before you can comment on or make changes to this bug.