Bug 149499 - RPM scriptlets fail when they try to run chkconfig --add/--del with selinux targetted mode
Summary: RPM scriptlets fail when they try to run chkconfig --add/--del with selinux t...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: selinux-policy-targeted
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-23 17:34 UTC by AJ Lewis
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-23 17:37:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description AJ Lewis 2005-02-23 17:34:51 UTC
Description of problem:
rpm scriptlets fail when they try to run chkconfig --add or chkconfig --del commands

Version-Release number of selected component (if applicable):
libselinux-devel-1.19.1-7
selinux-policy-targeted-1.17.30-2.52.1
libselinux-1.19.1-7
rpm-4.3.3-7_nonptl


How reproducible:
Every time.

Steps to Reproduce:
1. Set up /etc/selinux/config with:
SELINUX=enforcing
SELINUXTYPE=targeted

2. Reboot to enable policy

3. Try to add or remove an rpm with chkconfig in post/preun scriptlets
(vnc-server, pcmcia-cs, GFS)

Actual results:
On install, pre post scriplet fails out, but the package is still installed
On remove, the preun scriplet fails out, and the package is not removed
# rpm -e  pcmcia-cs
error: %preun(pcmcia-cs-3.2.7-1.14.i386) scriptlet failed, exit status 255

Expected results:
No error in the post/preun scriptlets

Additional info:

May be related to bug #148922

Comment 1 AJ Lewis 2005-02-23 17:37:14 UTC
This issue was caused by imaging a node without handling the extended attributes
properly.  It is not a bug.


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