Bug 177883
Summary: | error: %post(lirc-0.8.0-0.2.pre4.fc5.i386) scriptlet failed, exit status 255 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jim Cornette <jim.cornette> | ||||
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5 | CC: | katzj, sct | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-2.2.8-1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-01-31 16:28:28 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: | |||||||
Attachments: |
|
Description
Jim Cornette
2006-01-16 02:48:52 UTC
removing the db entry for lirc-0.8.0-0.2.pre4.fc5 and running from a root terminal resulted in the same error. Authentication does not seem to be an influence pup error: %post(lirc-0.8.0-0.2.pre4.fc5.i386) scriptlet failed, exit status 255 [root@cornette-lt packages]# rpm -e --justdb lirc-0.8.0-0.2.pre4.fc5 [root@cornette-lt packages]# setenforce 0 [root@cornette-lt packages]# pup [root@cornette-lt packages]# rpm -q lirc lirc-0.8.0-0.2.pre4.fc5 It seems to be SELinux. Setenforce 0 resolves issue. Created attachment 123228 [details]
grepped denied errors from audit.log
This is an audit log containing errors experienced with denials.
df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 16425032 6194320 9382884 40% / /dev/hda1 101086 12237 83630 13% /boot /dev/shm 322352 0 322352 0% /dev/shm /dev/hda3 9920624 1335252 8073304 15% /home /dev/hda6 10605128 291960 9765756 3% /var /dev/hda3 9920624 1335252 8073304 15% /media/disk /home is also mounted as media. Another problem, I guess. Submitted for errors related to /dev/hdx entries. Changing this bug to selinux related. The below error was just experienced. error: %post(bittorrent-gui-4.2.2-2.fc5.noarch) scriptlet failed, exit status 255 Reassigning bug for SELinux attention and transferring previous assignee to CC. Reason: Pirut and pup seem to work fine with SELinux disabled. I am still experiencing %post and %pre scriptlet errors with selinux enabled when using pup to update system. Issuing selinux 0 before running pup allows packages to update without scriptlet exit status 255 errors. Fixed in selinux-policy-2.2.6-1 When upgrading selinux-policy-targeted, I ended up with the below error. Selinux-policy seemed to install without complaint. I have not run in enforcing yet until policy was upgraded. I will try pup with selinux enabled to confirm when package deps are reduced n rawhide. Updating : selinux-policy-targeted ####################### [ 3/12] Traceback (most recent call last): File "/usr/sbin/genhomedircon", line 364, in ? selconf.write() File "/usr/sbin/genhomedircon", line 325, in write fd.write(self.genoutput()) File "/usr/sbin/genhomedircon", line 316, in genoutput ret += self.genHomeDirContext() File "/usr/sbin/genhomedircon", line 265, in genHomeDirContext users = self.getUsers() File "/usr/sbin/genhomedircon", line 210, in getUsers (status, list, lsize) = semanage_seuser_list(self.semanageHandle) NameError: global name 'semanage_seuser_list' is not defined libsemanage.semanage_install_sandbox: genhomedircon returned error code 1. /sbin/restorecon reset /usr/bin/rhgb context system_u:object_r:bin_t->system_u:object_r:xdm_exec_t Yes an updated policycoreutils went in about the same time as an update to libsemanage. Unfortunately Rawhide grabbed libsemanage instead of policycoreutils. Will be in the update tonight. Reporting back on actually using pup with selinux active, I updates a few packages and they installed without any trouble with %post or %pre scriptlets. The overall dep conflicts are higher than normal to be able to update many packages. The test was with only a few packages. Regrding the error in the terminal output, it did not look like something outputted by design. I figured I'd report the error since it seemed to relate to SELinux. Thanks for the reason behind the error output generation. Updating to this morning's rawhide (going from selinux-policy-targeted-2.1.9-2.noarch to selinux-policy-targeted-2.2.8-1.noarch), I got just the same error that was described in comment #9: Updating : selinux-policy-targeted ################### [ 503/1171] Traceback (most recent call last): File "/usr/sbin/genhomedircon", line 364, in ? selconf.write() File "/usr/sbin/genhomedircon", line 325, in write fd.write(self.genoutput()) File "/usr/sbin/genhomedircon", line 316, in genoutput ret += self.genHomeDirContext() File "/usr/sbin/genhomedircon", line 265, in genHomeDirContext users = self.getUsers() File "/usr/sbin/genhomedircon", line 210, in getUsers (status, list, lsize) = semanage_seuser_list(self.semanageHandle) NameError: global name 'semanage_seuser_list' is not defined libsemanage.semanage_install_sandbox: genhomedircon returned error code 1. Did the fix not get picked up by rawhide? Thanks. The fix is in policycoreutils-1.29.17-1 |