Skip to contentSkip to conversation

libsepol.print_missing_requirements

DISCUSSION Shintaro Fujiwara 2 participants 6 messages Aug 2, 2007 – Aug 9, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,
I made a .pp file by policygentool in devel directory. But can not istall .pp file in strict policy.
I added many type/attribute as global requirements. And finally, libsemanage says common (null) were not met.

I did

semodule -b base.pp

in /usr/share/selinux/strict directory,
but can_send_audit_msg were not met.

so, I did

semodule -b base.pp

in /etc/selinux/strict/modules/active

it worked.

Still I can't install my .pp file.

Why and what sould I do ?

Please help...

version

selinux-policy-strict-2.6.4-29.fc7
selinux-doc-1.26-1.1
libselinux-2.0.14-4.fc7
selinux-policy-mls-2.6.4-29.fc7
libselinux-devel-2.0.14-4.fc7
selinux-policy-2.6.4-29.fc7
selinux-policy-targeted-2.6.4-29.fc7
libselinux-python-2.0.14-4.fc7
selinux-policy-devel-2.6.4-29.fc7
libsepol-devel-2.0.3-1.fc7
libsepol-2.0.3-1.fc7
libsemanage-2.0.3-4.fc7
policycoreutils-2.0.16-6.fc7
policycoreutils-2.0.16-11.fc7
policycoreutils-2.0.16-10.fc7
policycoreutils-newrole-2.0.16-11.fc7
policycoreutils-gui-2.0.16-11.fc7

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 5 lines · Shintaro Fujiwara

Hi,
I made a .pp file by policygentool in devel directory. But can not istall .pp file in strict policy.
I added many type/attribute as global requirements. And finally, libsemanage says common (null) were not met.

Show the actual output of semodule, and attach your .te file.

Quoted 6 lines

I did

semodule -b base.pp

in /usr/share/selinux/strict directory,
but can_send_audit_msg were not met.

Wait, first you say you tried installing a .pp file that you generated via policygentool, but now you say you are trying to install the base.pp file from strict?

Quoted 7 lines

so, I did

semodule -b base.pp

in /etc/selinux/strict/modules/active

it worked.

And now you are re-installing the already installed base module from strict? Are /etc/selinux/strict/modules/active/base.pp and /usr/share/selinux/strict/base.pp identical?

Quoted 5 lines

Still I can't install my .pp file.

Why and what sould I do ?

Quoted 7 lines

Please help...

version

policycoreutils-2.0.16-6.fc7
policycoreutils-2.0.16-11.fc7
policycoreutils-2.0.16-10.fc7

Hmm...three versions of policycoreutils?

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Today I updated policies to 2.6.4.30 but couldn't make it either. And I eliminated older versions of policycoreutils.

I generated by policygentool a policy for noip dynamic-dns updater. .te file has nothing special execpt I added _etc_ type which I think should has configuration file.
I don' think there's something to do with the tool.
.te file has proper declarations I think...

Here's the message.

#semodule -i noip.pp
libsepol.print_missing_requirements: noip's global requirements were not met: type/attribute httpd_sysadm_script_exec_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

So, I added this type and on and on...
such like,
munin_t, resmgrd_t, openca_ca_t, razor_t, dcc_client_t, siggen_t, aide_t........ All I noticed not installed in strict policy.

I'm at a loss...

2007/8/4, Stephen Smalley <[email protected]>:

Quoted 52 lines · Shintaro Fujiwara
Quoted 5 lines

Hi,
I made a .pp file by policygentool in devel directory. But can not istall .pp file in strict policy.
I added many type/attribute as global requirements. And finally, libsemanage says common (null) were not met.

Show the actual output of semodule, and attach your .te file.

Quoted 6 lines

I did

semodule -b base.pp

in /usr/share/selinux/strict directory,
but can_send_audit_msg were not met.

Wait, first you say you tried installing a .pp file that you generated via policygentool, but now you say you are trying to install the base.pp file from strict?

Quoted 7 lines

so, I did

semodule -b base.pp

in /etc/selinux/strict/modules/active

it worked.

And now you are re-installing the already installed base module from strict? Are /etc/selinux/strict/modules/active/base.pp and /usr/share/selinux/strict/base.pp identical?

Quoted 5 lines

Still I can't install my .pp file.

Why and what sould I do ?

Quoted 7 lines

Please help...

version

policycoreutils-2.0.16-6.fc7
policycoreutils-2.0.16-11.fc7
policycoreutils-2.0.16-10.fc7

Hmm...three versions of policycoreutils?

--
Stephen Smalley
National Security Agency

#3 lore raw
Quoted 17 lines · Shintaro Fujiwara

Today I updated policies to 2.6.4.30 but couldn't make it either. And I eliminated older versions of policycoreutils.

I generated by policygentool a policy for noip dynamic-dns updater. .te file has nothing special execpt I added _etc_ type which I think should has configuration file.
I don' think there's something to do with the tool.
.te file has proper declarations I think...

Here's the message.

#semodule -i noip.pp
libsepol.print_missing_requirements: noip's global requirements were not met: type/attribute httpd_sysadm_script_exec_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 6 lines

So, I added this type and on and on...
such like,
munin_t, resmgrd_t, openca_ca_t, razor_t, dcc_client_t, siggen_t, aide_t........ All I noticed not installed in strict policy.

I'm at a loss...

I don't understand. I can build and install the .te file you attached without any difficulty on a F7 system with strict policy. And I don't see where the requirements you listed are relevant to this module.

Try rebuilding the .pp file:
make -f /usr/share/selinux/devel/Makefile clean make -f /usr/share/selinux/devel/Makefile noip.pp

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw

All right, thanks !

Somethig is wrong on my server.
I will try what you adviced.

Anyway, I can see my server from my office all-right, so dynamic-dns not working (I mean it's almost static)...

As a matter of face, I could update apache.pp, because I installed apache from source, I mean path is different so I edited .fc file and it worked fine some time ago.
This problem only happened when I updated by yum.. Slitly I'm running my home server all-right, besides my noip.pp...
But, I can mangae all-right.
Thanks!
My concern had been cleared I think.

I will do anything my server run on SELinux, haha ! It's so hot in Japan, so I will eat ice-cream...

Thanks.

My homepage
http://intrajp.no-ip.com/
my project on SELinux
http://sourceforge.net/projects/segatex/
my project on PHP
http://sourceforge.net/projects/webon/

I am,

Officer, System-Informations, Signal School, Ground Self Defense Forces, Japan

Cheers to people in Government.

2007/8/6, Stephen Smalley <[email protected]>:

Quoted 29 lines · Shintaro Fujiwara
Quoted 17 lines

Today I updated policies to 2.6.4.30 but couldn't make it either. And I eliminated older versions of policycoreutils.

I generated by policygentool a policy for noip dynamic-dns updater. .te file has nothing special execpt I added _etc_ type which I think should has configuration file.
I don' think there's something to do with the tool.
.te file has proper declarations I think...

Here's the message.

#semodule -i noip.pp
libsepol.print_missing_requirements: noip's global requirements were not met: type/attribute httpd_sysadm_script_exec_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 6 lines

So, I added this type and on and on...
such like,
munin_t, resmgrd_t, openca_ca_t, razor_t, dcc_client_t, siggen_t, aide_t........ All I noticed not installed in strict policy.

I'm at a loss...

I don't understand. I can build and install the .te file you attached without any difficulty on a F7 system with strict policy. And I don't see where the requirements you listed are relevant to this module.

Quoted 9 lines

Try rebuilding the .pp file:
make -f /usr/share/selinux/devel/Makefile clean make -f /usr/share/selinux/devel/Makefile noip.pp

--
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
In reply to Stephen Smalley

I solved the problem, only upgrading selinux-related rpm packages, to default packages with --oldpackage option.

#rpm -Uvh --oldpackage selinux-policy-such...
I upgraded to old packages,
libselinux or checkpolicy policycoreutils and everything.

I could install my module in default F7 packages all right.

I'm calm now...

I will maintain my server under default module for a while.

In a sense, SELinux is good when you do not update. Even if packages have security flaws, system itself is intact.

2007/8/6, Stephen Smalley <[email protected]>:

Quoted 29 lines · Shintaro Fujiwara
Quoted 17 lines

Today I updated policies to 2.6.4.30 but couldn't make it either. And I eliminated older versions of policycoreutils.

I generated by policygentool a policy for noip dynamic-dns updater. .te file has nothing special execpt I added _etc_ type which I think should has configuration file.
I don' think there's something to do with the tool.
.te file has proper declarations I think...

Here's the message.

#semodule -i noip.pp
libsepol.print_missing_requirements: noip's global requirements were not met: type/attribute httpd_sysadm_script_exec_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 6 lines

So, I added this type and on and on...
such like,
munin_t, resmgrd_t, openca_ca_t, razor_t, dcc_client_t, siggen_t, aide_t........ All I noticed not installed in strict policy.

I'm at a loss...

I don't understand. I can build and install the .te file you attached without any difficulty on a F7 system with strict policy. And I don't see where the requirements you listed are relevant to this module.

Quoted 9 lines

Try rebuilding the .pp file:
make -f /usr/share/selinux/devel/Makefile clean make -f /usr/share/selinux/devel/Makefile noip.pp

--
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.