Skip to contentSkip to conversation

Global requirements were not met

DISCUSSION [email protected] 2 participants 5 messages Feb 26, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all,

Still having problems setting up modules dor JBoss + Java:

I believe our JBoss module has a fine start now. We decided to write a complete new java-module (jbossjava) so we will be able to get java to work is strict-mode.

See the following files:
myjboss.if: http://pastebin.com/f4df202a2
myjboss.te: http://pastebin.com/d7318637b
myjboss.fc: http://pastebin.com/f2f66ff68

jbossjava.if: http://pastebin.com/f179749e8
jbossjava.te: http://pastebin.com/f1731b45d
jbossjava.fc: http://pastebin.com/f52227f13

(Probably our code isn't optimized or even corect yet, we know. We first just want to have everyting up and running)

We are able to build an rpm with the modules included, but when installing the newly build rpm's we see:

Preparing... ###########################################
[100%]
1:selinux-policy-strict ########################################### [
33%]
libsepol.print_missing_requirements: jbossjava's global requirements were not met: type/attribute jboss_rx_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!
2:selinux-policy ########################################### [
67%]
3:selinux-policy-devel ###########################################
[100%]

Apparently, jbossjava doesn't have any access to the interfaces in myjboss.pp. why?

Cheers!

Bart + Ronald

--
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 14 lines · On Tue, 2008-02-26 at 17:06 +0100, [email protected] wrote:

Still having problems setting up modules dor JBoss + Java:

I believe our JBoss module has a fine start now. We decided to write a complete new java-module (jbossjava) so we will be able to get java to work is strict-mode.

See the following files:
myjboss.if: http://pastebin.com/f4df202a2
myjboss.te: http://pastebin.com/d7318637b
myjboss.fc: http://pastebin.com/f2f66ff68

jbossjava.if: http://pastebin.com/f179749e8
jbossjava.te: http://pastebin.com/f1731b45d
jbossjava.fc: http://pastebin.com/f52227f13

[...]

Quoted 6 lines
   1:selinux-policy-strict  ########################################### [

33%]
libsepol.print_missing_requirements: jbossjava's global requirements were not met: type/attribute jboss_rx_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

[...]

Quoted 2 lines

Apparently, jbossjava doesn't have any access to the interfaces in myjboss.pp. why?

Its not an interface problem, jboss_rx_t isn't declared.

Signature · 10 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



--
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
Quoted 22 lines · [NAME]
Quoted 14 lines · On Tue, 2008-02-26 at 17:06 +0100, [email protected] wrote:

Still having problems setting up modules dor JBoss + Java:

I believe our JBoss module has a fine start now. We decided to write a complete new java-module (jbossjava) so we will be able to get java to work is strict-mode.

See the following files:
myjboss.if: http://pastebin.com/f4df202a2
myjboss.te: http://pastebin.com/d7318637b
myjboss.fc: http://pastebin.com/f2f66ff68

jbossjava.if: http://pastebin.com/f179749e8
jbossjava.te: http://pastebin.com/f1731b45d
jbossjava.fc: http://pastebin.com/f52227f13

[...]

Quoted 6 lines
   1:selinux-policy-strict  ########################################### [

33%]
libsepol.print_missing_requirements: jbossjava's global requirements were not met: type/attribute jboss_rx_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 5 lines

[...]

Quoted 2 lines

Apparently, jbossjava doesn't have any access to the interfaces in myjboss.pp. why?

Its not an interface problem, jboss_rx_t isn't declared.

If I look in the myjboss.if file I see:

interface(jboss_rx_files',

        gen_require(`
                type jboss_rx_t;
        ')
        allow $1 jboss_rx_t:file exec_file_perms;

')

If I understand the interfaces right it is declared in the gen_require statement? And then we can use it in jbossjava.te:

jboss_rx_files(jbossjava_t)

Or do we not understand the way interfaces work? Do we have to declare jboss_rx_t in jbossjava.te also?

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

#3 lore raw
Quoted 39 lines · Ronald van den Blink
Quoted 22 lines · [NAME]
Quoted 14 lines · On Tue, 2008-02-26 at 17:06 +0100, [email protected] wrote:

Still having problems setting up modules dor JBoss + Java:

I believe our JBoss module has a fine start now. We decided to write a complete new java-module (jbossjava) so we will be able to get java to work is strict-mode.

See the following files:
myjboss.if: http://pastebin.com/f4df202a2
myjboss.te: http://pastebin.com/d7318637b
myjboss.fc: http://pastebin.com/f2f66ff68

jbossjava.if: http://pastebin.com/f179749e8
jbossjava.te: http://pastebin.com/f1731b45d
jbossjava.fc: http://pastebin.com/f52227f13

[...]

Quoted 6 lines
   1:selinux-policy-strict  ########################################### [

33%]
libsepol.print_missing_requirements: jbossjava's global requirements were not met: type/attribute jboss_rx_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 5 lines

[...]

Quoted 2 lines

Apparently, jbossjava doesn't have any access to the interfaces in myjboss.pp. why?

Its not an interface problem, jboss_rx_t isn't declared.

If I look in the myjboss.if file I see:

interface(jboss_rx_files',

        gen_require(`
                type jboss_rx_t;
        ')
        allow $1 jboss_rx_t:file exec_file_perms;

')

Quoted 7 lines

If I understand the interfaces right it is declared in the gen_require statement? And then we can use it in jbossjava.te:

jboss_rx_files(jbossjava_t)

Or do we not understand the way interfaces work? Do we have to declare jboss_rx_t in jbossjava.te also?

gen_require only specifies dependencies, it doesn't declare them. You still have to declare it in jbossjava.te.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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
Quoted 43 lines · [NAME]
Quoted 42 lines · Ronald van den Blink
Quoted 22 lines · [NAME]
Quoted 14 lines · On Tue, 2008-02-26 at 17:06 +0100, [email protected] wrote:

Still having problems setting up modules dor JBoss + Java:

I believe our JBoss module has a fine start now. We decided to write a complete new java-module (jbossjava) so we will be able to get java to work is strict-mode.

See the following files:
myjboss.if: http://pastebin.com/f4df202a2
myjboss.te: http://pastebin.com/d7318637b
myjboss.fc: http://pastebin.com/f2f66ff68

jbossjava.if: http://pastebin.com/f179749e8
jbossjava.te: http://pastebin.com/f1731b45d
jbossjava.fc: http://pastebin.com/f52227f13

[...]

Quoted 6 lines
   1:selinux-policy-strict  ########################################### [

33%]
libsepol.print_missing_requirements: jbossjava's global requirements were not met: type/attribute jboss_rx_t libsemanage.semanage_link_sandbox: Link packages failed
semodule: Failed!

Quoted 5 lines

[...]

Quoted 2 lines

Apparently, jbossjava doesn't have any access to the interfaces in myjboss.pp. why?

Its not an interface problem, jboss_rx_t isn't declared.

If I look in the myjboss.if file I see:

interface(jboss_rx_files',

        gen_require(`
                type jboss_rx_t;
        ')
        allow $1 jboss_rx_t:file exec_file_perms;

')

If I understand the interfaces right it is declared in the gen_require statement? And then we can use it in jbossjava.te:

Quoted 7 lines
Quoted 4 lines

jboss_rx_files(jbossjava_t)

Or do we not understand the way interfaces work? Do we have to declare jboss_rx_t in jbossjava.te also?

gen_require only specifies dependencies, it doesn't declare them. You still have to declare it in jbossjava.te.

Ohoh, I'm feeling stupid now... Thanks!

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