LinuxQuestions.org
Visit Jeremy's Blog.
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 09-30-2013, 05:41 PM   #1
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Rep: Reputation: 1
"SELinux Has detected suspicious behaviour on your system " RHEL 6


Hi,

I have been using Red Hat enterprise Linux for while to practise for RHCE & RHCSA. Lately i installed Virtualization on my PC (RHEL 6) and i have been getting a lot of SELinux Alert/warning.

Following is the summary of the latest alerts i got:

Since the logs are a little big, am attaching them.

Please let me know if it is a real concern.

Thanks.
 
Old 09-30-2013, 05:44 PM   #2
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Few more Attachments

Hi Again,

More Alerts in addition to earlier.
 
Old 09-30-2013, 09:06 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have you installed "SELinuxTroubleShooter"
and what is it's output

95% of the time it's suggestion is the correct solution

Code:
su -
yum search selinux 
--- and it should be in the list to install --- 
yum install ......
 
Old 10-01-2013, 12:28 AM   #4
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Smile thanks for the suggestion

Quote:
Originally Posted by John VV View Post
have you installed "SELinuxTroubleShooter"
and what is it's output

95% of the time it's suggestion is the correct solution

Code:
su -
yum search selinux 
--- and it should be in the list to install --- 
yum install ......
Will post the output of troubleshooter as soon as possible.
 
Old 10-01-2013, 01:45 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by manoj_hanse View Post
Following is the summary of the latest alerts i got
With respect to the first two logs (GDM-related): don't use the system as root but as unprivileged user.
With respect to the last two logs: what have you been doing to cause this?
Was the system properly labeled?
Have you introduced source-based software or software from non-RHEL repos?
 
Old 10-01-2013, 02:19 AM   #6
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
With respect to the first two logs (GDM-related): don't use the system as root but as unprivileged user.
With respect to the last two logs: what have you been doing to cause this?
Was the system properly labeled?
Have you introduced source-based software or software from non-RHEL repos?
My add/remove program was not working. So I downloaded some rpms related to qemu from rpm site. Am not sure if libvirt was also a part of it.

When I start virtual-manager the libvirtd daemon is not able to start. I have tried to start it still it showing not running.

Will post few more updates in some time.

Thanks in advance for all suggestions.:-)
 
Old 10-01-2013, 02:27 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
installing random rpm's from some random site is the FASTEST !! way to kill a redhat install
-- the FASTEST WAY

some are NOT compatible with others
rpmfusion is NOT compatible with the base install
and rpmforge can not be mixed with elrepo

RedHat is really not free
you DO have to buy the required support contract
or do not use redhat !!!

install the free rebuild CentOS 6.4 or ScientificLinux 6.4

Quote:
My add/remove program was not working.
without that REQUIRED support contract you really do not install anything


Quote:
So I downloaded some rpms related to qemu from rpm site
so just HOW did you install these files from some unknown website ?

did you use yum and a "local install" or use "rpm" or from the gnome GUI double click on the rpm file ?

and what was the site and what were the files ?
 
Old 10-01-2013, 04:17 AM   #8
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by John VV View Post
installing random rpm's from some random site is the FASTEST !! way to kill a redhat install
-- the FASTEST WAY

some are NOT compatible with others
rpmfusion is NOT compatible with the base install
and rpmforge can not be mixed with elrepo

RedHat is really not free
you DO have to buy the required support contract
or do not use redhat !!!

install the free rebuild CentOS 6.4 or ScientificLinux 6.4


without that REQUIRED support contract you really do not install anything



so just HOW did you install these files from some unknown website ?

did you use yum and a "local install" or use "rpm" or from the gnome GUI double click on the rpm file ?

and what was the site and what were the files ?
I downloaded from http://rpm.pbone.net/ but only some dependencies which i didnt found in Centos.... but later when my system crashed due to some reason and i rebooted after some troubleshooting when i restored my system, i found that some packages were not there. so again i used Centos Repo to install packages like qemu-img quemu-kvm esound-libs SDL SDL-devel. I don't have a RHN subscription since i am using it for personal training purpose. Only when CentOS repo doesn't work i install rpms from external source.

About the logs: mostly all logs are related to virsh GDM and Network manager. is it that the original files like devices have been modified by these virtual machine files?

Thanks.
 
Old 10-01-2013, 12:54 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you are trying to use the cent repos and the web to bypass the FACT that you ARE NOT going to pay for the REQUIRED support contract !!!!


buy the required license from redhat !!!!!!!!!!
https://www.redhat.com/wapps/store/catalog.html
the single desktop price is at the bottom of the page or
https://www.redhat.com/apps/store/desktop/
the 1 year standard support contract is $299 / year

or install CentOS 6.4

and seeing AS you ARE studying for
RHCE & RHCSA

then BUY the operating system that this test is FOR !!!
it is a "no-brainer" it's like buying the needed text books for a class

Last edited by John VV; 10-01-2013 at 12:56 PM.
 
Old 10-02-2013, 04:24 AM   #10
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by John VV View Post
so you are trying to use the cent repos and the web to bypass the FACT that you ARE NOT going to pay for the REQUIRED support contract !!!!


buy the required license from redhat !!!!!!!!!!
https://www.redhat.com/wapps/store/catalog.html
the single desktop price is at the bottom of the page or
https://www.redhat.com/apps/store/desktop/
the 1 year standard support contract is $299 / year

or install CentOS 6.4

and seeing AS you ARE studying for
RHCE & RHCSA

then BUY the operating system that this test is FOR !!!
it is a "no-brainer" it's like buying the needed text books for a class
I think i will just carry on. since i cant afford the subscription better is that i will practise with what i have. just that i want to do redhat certification i downloaded the trial RHEL 6. otherwise i have other distributions. I that time didn't know CentOS was the same other wise i would have downloaded that. All Non_linux users use microsoft windows buy most of them use pirated and those who do windows server certifications don't buy license. It doesnt make sense. Linux is open source and thats why i like it because i can try it.

I was hoping that i could get some help on my issue but you directed me to the Red Hat support team. I mean i could have done that before. But rather i posted it here, expecting for some help.

The only this i did wrong that i related it to RHEL and thats why no one even bothered to solve it. i am not disappointed but from such a big forum i expected at least some help.

Thanks.
 
Old 10-02-2013, 11:15 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
install CentOS 6.4
that will solve most of the problems

mixing a unregistered RHEL6 ( WITHOUT access to RHN ) with some cent repos and things from pbone
will cause all kinds of unsolvable problems , or at lease very hard to solve ones


buying the support contract and installing from RHN will solve most things

or
use CentOS
 
1 members found this post helpful.
Old 10-02-2013, 12:11 PM   #12
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Smile finally problem is solved

Quote:
Originally Posted by John VV View Post
install CentOS 6.4
that will solve most of the problems

mixing a unregistered RHEL6 ( WITHOUT access to RHN ) with some cent repos and things from pbone
will cause all kinds of unsolvable problems , or at lease very hard to solve ones


buying the support contract and installing from RHN will solve most things

or
use CentOS
So I did what was suggested here and send an email to Selinux maillist support and they have replied. I am analyzing it and think the problem will be solved.

Thanks all :-)
 
Old 10-02-2013, 12:14 PM   #13
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Hope this mailing list will be helpful for someone with selinux issues in future.

selinux@lists.fedoraproject.org

Cheers.
 
Old 10-11-2013, 01:11 AM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by manoj_hanse View Post
So I did what was suggested here and send an email to Selinux maillist support and they have replied. I am analyzing it and think the problem will be solved.
Marking thread NOT solved as you haven't shared how this was actually fixed. Please do. The concept is called reciprocity.
 
Old 10-11-2013, 06:05 AM   #15
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Original Poster
Rep: Reputation: 1
Here is reply i got from Redhat SELinux mailing list

Your AVCs show the following in Fedora.
audit2allow -i /tmp/SELinux\ Alerts.txt


#============= NetworkManager_t ==============

#!!!! This avc has a dontaudit rule in the current policy
allow NetworkManager_t self:capability sys_module;

#============= dnsmasq_t ==============

#!!!! This avc is allowed in the current policy
allow dnsmasq_t virt_var_run_t:dir write;

#============= xdm_t ==============

#!!!! This avc is allowed in the current policy
allow xdm_t admin_home_t:dir { write read };

#============= xm_t ==============

#!!!! This avc is allowed in the current policy
allow xm_t random_device_t:chr_file read;


You can get a preview release of the RHEL6.5 selinux-policy package at

people.redhat.com/dwalsh/SELinux/RHEL6/noarch

Last edited by manoj_hanse; 10-11-2013 at 06:12 AM.
 
  


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
[SOLVED] unable to install rhel, " only detected i686 CPU" slowerogue Linux - Newbie 5 10-05-2012 09:38 AM
Implementing SeLinux on Debian 5 (Lenny) -- can't install "selinux-basics" bashFUL Linux - Security 3 10-17-2011 01:16 AM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
RHEL's license key "missing" in registered system. iuaui Linux - Enterprise 4 03-31-2006 02:30 PM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 08:16 PM

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

All times are GMT -5. The time now is 01:53 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