'semodule' command fails with the error "libsepol.module_package_read_offsets: wrong magic number for module package"
Issue
- 'semodule' command fails with the error "libsepol.module_package_read_offsets: wrong magic number for module package" .
-
Receiving the following error when trying to add/remove SELinux modules.
[root@server1 audit]# semodule -i mymodule.pp libsepol.module_package_read_offsets: wrong magic number for module package: expected 4185718671, got 1685024010 libsemanage.semanage_load_module: Error while reading from module file /etc/selinux/targeted/modules/tmp/modules/local.te.
Environment
- Red Hat Enterprise Linux 5
- selinux-policy-2.4.6-279.el5_5.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.