Hello. I saw some previous discussions on this list regarding the message: "libsemanage.parse_module_headers: Data did not represent a module." when upgrading a policy RPM.
Did I miss how to resolve this issue, and also what perhaps I'd manage to do to get things into this state? I'd appreciate any help you can give pointing me in the right direction.
Best regards, Ben
....
Here's my e.g. Downloading Packages: (1/1): selinux-policy-tar 100% |=========================| 443 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : selinux-policy-targeted ######################### [1/2] libsemanage.parse_module_headers: Data did not represent a module. Failed! /sbin/restorecon reset /usr/share/logwatch/scripts/logwatch.pl context system_u: object_r:bin_t->system_u:object_r:logwatch_exec_t /sbin/restorecon reset /var/cache/logwatch context system_u:object_r:var_t->system_u:object_r:logwatch_cache_t Cleanup : selinux-policy-targeted ######################### [2/2]
On Mon, 2006-01-02 at 20:30 -0600, Benjamin Youngdahl wrote:
Hello. I saw some previous discussions on this list regarding the message: "libsemanage.parse_module_headers: Data did not represent a module." when upgrading a policy RPM.
Did I miss how to resolve this issue, and also what perhaps I'd manage to do to get things into this state? I'd appreciate any help you can give pointing me in the right direction.
Looks like a packaging problem to me; something is running semodule -i on a module package that was built as a base policy module.
Stephen Smalley wrote:
On Mon, 2006-01-02 at 20:30 -0600, Benjamin Youngdahl wrote:
Hello. I saw some previous discussions on this list regarding the message: "libsemanage.parse_module_headers: Data did not represent a module." when upgrading a policy RPM.
Did I miss how to resolve this issue, and also what perhaps I'd manage to do to get things into this state? I'd appreciate any help you can give pointing me in the right direction.
Looks like a packaging problem to me; something is running semodule -i on a module package that was built as a base policy module.
Ok the problem is that I have added enableaudit.pp and the post install is trying to load it. I need to change the postinstall to
semodule -b /usr/share/selinux/%1/base.pp -s %1 \ for file in $(ls /usr/share/selinux/%1 | grep -v -e base.pp -e enableaudit.pp ) \ do \ semodule -i /usr/share/selinux/%1/$file -s %1;\ done; \
selinux@lists.fedoraproject.org