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@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.
--
James Carter <jwcart2@xxxxxxxxxxxxx>
National Security Agency
--
James Carter <jwcart2@xxxxxxxxxxxxx>
National Security Agency
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.