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

Summary: 'env: /etc/init.d/yum: Permission denied' while upgrading
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: yumAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-10 01:38:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 122683    

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.