* Received a base module, expected a non-base module.
@ 2016-10-03 16:32 Jason Zaman
2016-10-03 17:11 ` James Carter
0 siblings, 1 reply; 4+ messages in thread
From: Jason Zaman @ 2016-10-03 16:32 UTC (permalink / raw)
To: selinux
Hey,
I cant load base.pp now on gentoo :(. this is with 2.6-rc1.
meriadoc mcs # semodule -vvv -b base.pp -i $(ls *.pp | grep -v base.pp)
The --base option is deprecated. Use --install instead.
Attempting to install module 'base.pp':
libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
semodule: Failed on base.pp!
meriadoc mcs # semodule -vvv -b base.pp
The --base option is deprecated. Use --install instead.
Attempting to install module 'base.pp':
libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
semodule: Failed on base.pp!
meriadoc mcs # semodule -vvv -i base.pp
Attempting to install module 'base.pp':
libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
semodule: Failed on base.pp!
Anyone got any ideas?
-- Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Received a base module, expected a non-base module.
2016-10-03 16:32 Received a base module, expected a non-base module Jason Zaman
@ 2016-10-03 17:11 ` James Carter
2016-10-03 17:24 ` Jason Zaman
0 siblings, 1 reply; 4+ messages in thread
From: James Carter @ 2016-10-03 17:11 UTC (permalink / raw)
To: Jason Zaman, selinux
On 10/03/2016 12:32 PM, Jason Zaman wrote:
> Hey,
>
> I cant load base.pp now on gentoo :(. this is with 2.6-rc1.
>
> meriadoc mcs # semodule -vvv -b base.pp -i $(ls *.pp | grep -v base.pp)
> The --base option is deprecated. Use --install instead.
> Attempting to install module 'base.pp':
> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> semodule: Failed on base.pp!
> meriadoc mcs # semodule -vvv -b base.pp
> The --base option is deprecated. Use --install instead.
> Attempting to install module 'base.pp':
> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> semodule: Failed on base.pp!
> meriadoc mcs # semodule -vvv -i base.pp
> Attempting to install module 'base.pp':
> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> semodule: Failed on base.pp!
>
> Anyone got any ideas?
It is due to the recent patch to use pp module name instead of the filename if
they are different. I will work on a fix.
Thanks,
Jim
>
> -- Jason
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
>
--
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Received a base module, expected a non-base module.
2016-10-03 17:11 ` James Carter
@ 2016-10-03 17:24 ` Jason Zaman
2016-10-03 17:31 ` James Carter
0 siblings, 1 reply; 4+ messages in thread
From: Jason Zaman @ 2016-10-03 17:24 UTC (permalink / raw)
To: James Carter; +Cc: selinux
On Mon, Oct 03, 2016 at 01:11:40PM -0400, James Carter wrote:
> On 10/03/2016 12:32 PM, Jason Zaman wrote:
> > Hey,
> >
> > I cant load base.pp now on gentoo :(. this is with 2.6-rc1.
> >
> > meriadoc mcs # semodule -vvv -b base.pp -i $(ls *.pp | grep -v base.pp)
> > The --base option is deprecated. Use --install instead.
> > Attempting to install module 'base.pp':
> > libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> > semodule: Failed on base.pp!
> > meriadoc mcs # semodule -vvv -b base.pp
> > The --base option is deprecated. Use --install instead.
> > Attempting to install module 'base.pp':
> > libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> > semodule: Failed on base.pp!
> > meriadoc mcs # semodule -vvv -i base.pp
> > Attempting to install module 'base.pp':
> > libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
> > semodule: Failed on base.pp!
> >
> > Anyone got any ideas?
>
> It is due to the recent patch to use pp module name instead of the filename if
> they are different. I will work on a fix.
ooh, I should have remembered that one. fwiw, all the other modules load
just fine its only base.pp that has issues. Would renaming it to
something else make a difference?
-- Jason
> Thanks,
> Jim
>
> >
> > -- Jason
> > _______________________________________________
> > Selinux mailing list
> > Selinux@tycho.nsa.gov
> > To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> > To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
> >
>
>
> --
> James Carter <jwcart2@tycho.nsa.gov>
> National Security Agency
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Received a base module, expected a non-base module.
2016-10-03 17:24 ` Jason Zaman
@ 2016-10-03 17:31 ` James Carter
0 siblings, 0 replies; 4+ messages in thread
From: James Carter @ 2016-10-03 17:31 UTC (permalink / raw)
To: Jason Zaman; +Cc: selinux
On 10/03/2016 01:24 PM, Jason Zaman wrote:
> On Mon, Oct 03, 2016 at 01:11:40PM -0400, James Carter wrote:
>> On 10/03/2016 12:32 PM, Jason Zaman wrote:
>>> Hey,
>>>
>>> I cant load base.pp now on gentoo :(. this is with 2.6-rc1.
>>>
>>> meriadoc mcs # semodule -vvv -b base.pp -i $(ls *.pp | grep -v base.pp)
>>> The --base option is deprecated. Use --install instead.
>>> Attempting to install module 'base.pp':
>>> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
>>> semodule: Failed on base.pp!
>>> meriadoc mcs # semodule -vvv -b base.pp
>>> The --base option is deprecated. Use --install instead.
>>> Attempting to install module 'base.pp':
>>> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
>>> semodule: Failed on base.pp!
>>> meriadoc mcs # semodule -vvv -i base.pp
>>> Attempting to install module 'base.pp':
>>> libsemanage.parse_module_headers: Received a base module, expected a non-base module. (No such file or directory).
>>> semodule: Failed on base.pp!
>>>
>>> Anyone got any ideas?
>>
>> It is due to the recent patch to use pp module name instead of the filename if
>> they are different. I will work on a fix.
>
> ooh, I should have remembered that one. fwiw, all the other modules load
> just fine its only base.pp that has issues. Would renaming it to
> something else make a difference?
>
No. It expects all files ending with "pp" to be a policy module. I think the
right solution will be to have parse_module_headers() not return an error if is
unable to parse the headers and fall back to using the filename as the module name.
Jim
> -- Jason
>
>> Thanks,
>> Jim
>>
>>>
>>> -- Jason
>>> _______________________________________________
>>> Selinux mailing list
>>> Selinux@tycho.nsa.gov
>>> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
>>> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
>>>
>>
>>
>> --
>> James Carter <jwcart2@tycho.nsa.gov>
>> National Security Agency
--
James Carter <jwcart2@tycho.nsa.gov>
National Security Agency
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-03 17:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-03 16:32 Received a base module, expected a non-base module Jason Zaman
2016-10-03 17:11 ` James Carter
2016-10-03 17:24 ` Jason Zaman
2016-10-03 17:31 ` James Carter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.