Skip to contentSkip to conversation

Anyone run mozilla in enforce mode?

DISCUSSION Michael Reilly 2 participants 4 messages Oct 14, 2003 – Oct 16, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

Thank you to those who helped me - I finally got my X server running in enforce mode. Turning off dontaudit revealed that the X server needed DAC_OVERRIDE.

Now I have another problem - mozilla fails to start. Nothing is logged even with the dontaudit's removed from the policy. Mozilla does complain that it couldn't find one of its libraries (I do not recall which one and I left my notes at home).

I went through and labeled the mozilla executables and reg* files so they match is specified in the file_constraints since mozilla installed itself into /usr/lib/mozilla-1.4 instead of /usr/lib/mozilla. The shared libraries are properly labled as shared libs.

Has anyone been able to run Mozilla in enforce mode? If so, what changes need to be made from the default policy?

Thanks,

michael

Signature · 8 lines
---- ---- ----
Michael Reilly    [email protected]
    Cisco Systems, Santa Cruz, CA

--
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 4 lines · Michael Reilly

Now I have another problem - mozilla fails to start.  Nothing is logged even with the dontaudit's removed from the policy.  Mozilla does complain that it couldn't find one of its libraries (I do not recall which one and I left my notes at home).

It's been working well for me.

Please do the same things as you did for X, remove the dontaudits and see what gets logged. Then please send me an email with the exact changes you made to the file_contexts (and anything else that needs changing).

Signature · 11 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



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

As I mentioned, nothing is logged even with the dontaudit lines removed.

The only error message at all is one from mozilla itself saying it can't find to a library. I'll find out which one tonight.

michael

Quoted 17 lines · On Wed, 15 Oct 2003 10:16:43 +1000 Russell Coker <[email protected]> wrote:
Quoted 4 lines · Michael Reilly

Now I have another problem - mozilla fails to start.  Nothing is logged even with the dontaudit's removed from the policy.  Mozilla does complain that it couldn't find one of its libraries (I do not recall which one and I left my notes at home).

It's been working well for me.

Please do the same things as you did for X, remove the dontaudits and see what gets logged. Then please send me an email with the exact changes you made to the file_contexts (and anything else that needs changing).

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
Signature · 9 lines
---- ---- ----
Michael Reilly    [email protected]
    Cisco Systems, Santa Cruz, CA


--
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
In reply to Russell Coker

I played with things a bit and mozilla now works. The one thing I recall doing is relabeling the javaplugin shared library. I installed mine in /usr/local/2re1.4.1.gcc3 and it was not labeled as a shlib_t.

Why no avc denied I do not know (I verified here were no dontaudit lines in policy.conf before compiling and load it).

I made a couple of unrelated changes. I am reviewing my notes to see if something could have fixed mozilla.

michael

Quoted 17 lines · On Wed, 15 Oct 2003 10:16:43 +1000 Russell Coker <[email protected]> wrote:
Quoted 4 lines · Michael Reilly

Now I have another problem - mozilla fails to start.  Nothing is logged even with the dontaudit's removed from the policy.  Mozilla does complain that it couldn't find one of its libraries (I do not recall which one and I left my notes at home).

It's been working well for me.

Please do the same things as you did for X, remove the dontaudits and see what gets logged. Then please send me an email with the exact changes you made to the file_contexts (and anything else that needs changing).

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
Signature · 9 lines
---- ---- ----
Michael Reilly    [email protected]
    Cisco Systems, Santa Cruz, CA


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