Bug 150486 - %pre/%post scriptlets fail during yum cron
Summary: %pre/%post scriptlets fail during yum cron
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-07 16:27 UTC by Orion Poplawski
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-08 19:27:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2005-03-07 16:27:07 UTC
Description of problem:

System is kept up to date with the yum daily cron.  When updating packages, the
%pre and %post scriptlets fail:

/etc/cron.daily/yum.cron:

error: %pre(kernel-smp-2.6.10-1.770_FC3.i686) scriptlet failed, exit status 255
error:   install: %pre scriptlet failed (2), skipping kernel-smp-2.6.10-1.770_FC3

I believe the corresponding audit error is:

type=KERNEL msg=audit(1110195203.062:9853596): item=0 name=/bin/sh inode=28707
dev=00:00
type=KERNEL msg=audit(1110195203.062:9853596): avc:  denied  { transition } for
 pid=20780 exe=/usr/bin/python path=/bin/bash dev=dm-1 ino=28707
scontext=system_u:system_r:crond_t tcontext=system_u:system_r:unconfined_t
tclass=process


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

selinux-policy-targeted-1.21.15-3

How reproducible:
Every time

Comment 1 Daniel Walsh 2005-03-08 16:24:27 UTC
Added the transition rule selinux-policy-targeted-1.21.15-7

This should fix this error, there could be other access rules that are
not got, please try it out.

Dan

Comment 2 Orion Poplawski 2005-04-08 19:27:32 UTC
I have not seen this since the update.  I think we can consider it fixed.


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