Re: semodule -i not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-08-27 at 10:36 +0500, Shaz wrote:
> 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.

Ok, so if you look at that page, you'll see that audit2allow compiled
the source (.te file) to a .pp file by running checkmodule and then
running semodule_package.

-- 
Stephen Smalley
National Security Agency


--
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.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux