LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-02-2007, 08:56 AM   #1
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Rep: Reputation: 15
Too many log messages!!!


I have gigs of logs, and I have them pouring out into my tty. They all look like this:
audit(1156908691.156:14): avc: granted { execmem } for pid=2508 comm="java" scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:system_r:unconfined_t:s0 tclass=process

When I stop that java process, the logs stop, but I need that process running. I configured SELinux to allow Java execstack but nothing changed. I disabled SELinux and it still does it.

What can I do to stop this? How can I tell if SELinux is still running?
 
Old 03-02-2007, 10:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you're getting those errors, selinux is definitely still running. try adding selinux=disabled to the grub / lilo boot options and see how it performs after the next boot.
 
Old 03-06-2007, 10:07 AM   #3
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
I hadn't rebooted, so it was definately still running. My next question is, how do I stop these messages while SELinux is still running?

I have allow_java_execstack checked, which it is allowing but it logs every single one of them, and there are hundreds of these a minute.


Mar 6 11:04:48 localhost kernel: audit(1173197088.765:11245): avc: granted { execmem } for pid=2996 comm="java" scontext=root:system_r:initrc_t:s0 tcontext=root:system_r:initrc_t:s0 tclass=process
 
Old 03-08-2007, 03:06 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I have gigs of logs, and I have them pouring out into my tty.
To console is a system setting (as in "dmesg -n int"): see "man dmesg".


I configured SELinux to allow Java execstack but nothing changed. I disabled SELinux and it still does it. (..) I have allow_java_execstack checked, which it is allowing but it logs every single one of them, and there are hundreds of these a minute.
I would advise against stopping SELinux because you then fall back to "old school" methods. That itself isn't bad provided your box is properly hardened but SELinux is a security *enhancement* so in this case "more ismore". If you can't run SELinux in enforcing mode during testing, at least run it in permissive mode. It will still be loaded to spit out AVC (access vector cache) messages so you can keep tabs on what *should* be adjusted RSN.

So the console thing being covered with "dmesg", the source of the logging can hopefully be uncovered running "audit2why" on the AVC messages. Since it's granted I suspect there is a boolean or audit2allow rule somewhere which makes messages of type "granted" get logged.
 
Old 03-08-2007, 07:29 AM   #5
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Original Poster
Rep: Reputation: 15
I figured it out. I updated some of the SELinux stuff with yum. I noticed there was some Java changes in the change log, and my version was a year old, so I updated it. It solved the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeating messages in /var/log/messages skubik Linux - General 2 12-23-2005 03:47 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 08:59 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
syslog and firestarter - log messages to another file than messages mule Linux - Newbie 0 08-07-2003 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration