Bug 784184

Summary: libsepol.module_package_read_offsets: module package header truncated (No such file or directory).
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED EOL QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dwalsh, jokajak, roysjosh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 14:03:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nicolas Mailhot 2012-01-24 07:10:30 UTC
# /usr/sbin/setsebool -P httpd_can_sendmail on 
libsepol.module_package_read_offsets: module package header truncated (No such file or directory).
libsemanage.semanage_load_module: Error while reading from module file /etc/selinux/targeted/modules/tmp/modules/local.pp. (No such file or directory).
Could not change policy booleans

selinux-policy-targeted-3.10.0-77.fc17.noarch

Comment 1 Daniel Walsh 2012-01-24 15:43:27 UTC
Do you have empty files in /etc/selinux/targetde/modules/active

?

Comment 2 Nicolas Mailhot 2012-01-24 18:32:55 UTC
(In reply to comment #1)
> Do you have empty files in /etc/selinux/targetde/modules/active
> 
> ?

local.pp is empty

if that's where selinux stores boolean values, that's not right, it means one of the selinux updates in rawhide ate it recently

Comment 3 Nicolas Mailhot 2012-01-24 18:39:14 UTC
*** Bug 784068 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2012-01-25 21:17:17 UTC
local.pp is not shipped by us.  If you remove the file you can update the policy.

I have no idea how it got there.  Although I have seen similar things happen on my machine,  Have not tracked it down yet.

Comment 5 Joshua Roys 2012-04-19 12:45:10 UTC
We're hitting a similar issue on RHEL6.  After a update, many of the modules in /etc/selinux/targeted/modules/active have 0 size.

# ll /etc/selinux/targeted/modules/active/modules/
total 1520
-rw-------. 1 root root 16248 Jan 11 08:48 abrt.pp
-rw-------. 1 root root     0 Jan 11 08:48 accountsd.pp
-rw-------. 1 root root     0 Jan 11 08:48 ada.pp
-rw-------. 1 root root     0 Jan 11 08:48 afs.pp
...

# semodule -l
libsepol.module_package_read_offsets: module package header truncated (No such file or directory).
libsepol.module_package_read_offsets: module package header truncated (No such file or directory).
libsepol.module_package_read_offsets: module package header truncated (No such file or directory).
...
abrt	1.2.0	
aiccu	1.0.0	
aide	1.5.0	
...

Would you like a separate bug?

Comment 6 Daniel Walsh 2012-04-19 17:27:43 UTC
Sure but did you see anything blow up on the update.  IE can you reproduce.

you reinstall selinux-policy-targeted 

Should put the pp files back into place.

Comment 7 Joshua Roys 2012-04-19 19:07:45 UTC
Unfortunately the update was automatic and unattended.  Unable to reproduce on other machines so far.  As an aside, looking at `ls -ltr` and the audit logs show that the "size 0" files began part way through the upgrade, and all subsequent .pp files were also empty.

Comment 8 Daniel Walsh 2012-04-19 19:29:37 UTC
Yes I am wondering if we are hitting somekind of out of resources error that is triggering this.

Comment 9 Fedora End Of Life 2013-04-03 16:16:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 10 Fedora End Of Life 2015-01-09 16:57:55 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2015-02-17 14:03:57 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.