Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.