On Tue, Aug 26, 2008 at 4:10 PM, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote: > > On Tue, 2008-08-26 at 14:51 +0500, Shaz wrote: >> I was trying to load the following module: >> --------------------------------- >> module spamd 1.0; >> >> require { >> role object_r; >> role system_r; >> >> class tcp_socket name_connect; >> >> type ldap_port_t; >> type spamd_t; >> }; >> >> allow spamd_t ldap_port_t:tcp_socket name_connect; >> -------------------------------- >> >> and I got the following error: >> >> [root@develap lpm]# semodule -i spamd.pp >> libsepol.module_package_read_offsets: wrong magic number for >> module package: expected 4185718671, got 1969516397 >> libsemanage.parse_module_headers: Could not parse module data. >> semodule: Failed on spamd.pp! >> >> How do I understand the problem and what can be the possible solution? > > How did you build spamd.pp? And what versions of libsepol, libsemanage, > and policycoreutils are you using? > Ok. I did not compile it :o). Just copied it from http://fedoraproject.org/wiki/SELinux/LoadableModules/Audit2allow and did semodule -i. Thanks. > -- > Stephen Smalley > National Security Agency > > -- Shaz -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.