Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 118153 - 'env: /etc/init.d/yum: Permission denied' while upgrading
Summary: 'env: /etc/init.d/yum: Permission denied' while upgrading
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 122683
TreeView+ depends on / blocked
 
Reported: 2004-03-12 16:18 UTC by Tim Waugh
Modified: 2014-01-21 22:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-10 01:38:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2004-03-12 16:18:38 UTC
Description of problem:
While upgrading yum to yum-2.0.5.20040310-1 (from previous build), I
got this error:

[root@tornado RPMS]# rpm -Fvh stunnel* tk* yum* yelp* patchutils*
error: failed to stat /var/lib/rpc_pipes: Permission denied
Preparing...               
########################################### [100%]
   1:tk                    
########################################### [ 20%]
   2:stunnel               
########################################### [ 40%]
   3:yum                   
########################################### [ 60%]
env: /etc/init.d/yum: Permission denied
   4:yelp                  
########################################### [ 80%]
   5:patchutils            
########################################### [100%]

dmesg shows:
avc:  denied  { transition } for  pid=3481 exe=/bin/env
path=/etc/rc.d/init.d/yum dev=hdb1 ino=344128
scontext=root:sysadm_r:rpm_script_t tcontext=root:system_r:initrc_t
tclass=process

and audit2allow says:
allow rpm_script_t initrc_t:process { transition };

Version-Release number of selected component (if applicable):
yum-2.0.5.20040310-1
policy-1.8-11

(I had added 'role sysadm_r types ldconfig_t;' to
/etc/security/selinux/src/policy/domains/program/ldconfig.te and 
reloaded policy in order to get package upgrading to work this well.)

How reproducible:
Not sure.

Comment 1 Seth Vidal 2004-05-07 04:19:59 UTC
I'm not sure how this is a yum bug.  It sounds more like a policy issue.


Comment 2 Jeff Johnson 2004-06-10 01:38:17 UTC
This probably long since fixed. certainly not seen by me.


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