Skip to contentSkip to conversation

Received a base module, expected a non-base module.

DISCUSSION Jason Zaman 2 participants 4 messages Oct 3, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 19 lines · Jason Zaman

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!

Quoted 1 line

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

Quoted 8 lines

-- Jason
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].

Signature · 2 lines
James Carter <[email protected]>
National Security Agency
#2 lore raw
Quoted 20 lines · James Carter
Quoted 19 lines · Jason Zaman

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!

Quoted 4 lines
Quoted 1 line

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

Quoted 16 lines

Thanks,
Jim

Quoted 8 lines

-- Jason
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].

Signature · 2 lines
James Carter <[email protected]>
National Security Agency
#3 lore raw
Quoted 21 lines · Jason Zaman
Quoted 20 lines · James Carter
Quoted 19 lines · Jason Zaman

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!

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

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

Quoted 18 lines

-- Jason

Quoted 16 lines

Thanks,
Jim

Quoted 8 lines

-- Jason
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].

--
James Carter <[email protected]>
National Security Agency

Signature · 2 lines
James Carter <[email protected]>
National Security Agency