Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th October 2010, 08:24 AM
marlonmin Offline
Registered User
 
Join Date: Jun 2007
Posts: 52
linuxchrome
AVC denial security alert!

I was trying to launch a Java Applet application, but in the process it displays a AVC denial security alert, and the launch failed due to this denial. What's wrong?

The following is detailed information:
--------------------------------------------------------------------------------------------------

Summary:

SELinux is preventing /usr/lib/firefox-3.6/firefox "execmod" access to
/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so.

Detailed Description:

SELinux denied access requested by firefox.
/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so may be a mislabeled.
/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so default SELinux type is
textrel_shlib_t, but its current type is usr_t. Changing this file back to the
default type, may fix your problem.

File contexts can be assigned to a file in the following ways.

* Files created in a directory receive the file context of the parent
directory by default.
* The SELinux policy might override the default label inherited from the
parent directory by specifying a process running in context A which creates
a file in a directory labeled B will instead create the file with label C.
An example of this would be the dhcp client running with the dhclient_t type
and creating a file in the directory /etc. This file would normally receive
the etc_t type due to parental inheritance but instead the file is labeled
with the net_conf_t type because the SELinux policy specifies this.
* Users can change the file context on a file using tools such as chcon, or
restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report against this package.

Allowing Access:

You can restore the default system context to this file by executing the
restorecon command. restorecon
'/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so', if this file is a
directory, you can recursively restore using restorecon -R
'/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so'.

Fix Command:

/sbin/restorecon '/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so'

Additional Information:

Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
023
Target Context unconfined_u:object_r:usr_t:s0
Target Objects /usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.
so [ file ]
Source firefox
Source Path /usr/lib/firefox-3.6/firefox
Port <Unknown>
Host localhost.localdomain
Source RPM Packages firefox-3.6.10-1.fc13
Target RPM Packages
Policy RPM selinux-policy-3.7.19-62.fc13
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Plugin Name restorecon
Host Name localhost.localdomain
Platform Linux localhost.localdomain
2.6.34.7-56.fc13.i686.PAE #1 SMP Wed Sep 15
03:27:15 UTC 2010 i686 i686
Alert Count 14
First Seen Mon 27 Sep 2010 12:46:28 AM EDT
Last Seen Wed 13 Oct 2010 10:57:19 AM EDT
Local ID dca2591e-b3be-4c02-9a50-33ea11e19ca1
Line Numbers

Raw Audit Messages

node=localhost.localdomain type=AVC msg=audit(1286981839.12:20): avc: denied { execmod } for pid=2298 comm="firefox" path="/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so" dev=dm-0 ino=2621577 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:usr_t:s0 tclass=file

node=localhost.localdomain type=SYSCALL msg=audit(1286981839.12:20): arch=40000003 syscall=125 success=no exit=-13 a0=a5c21000 a1=49e000 a2=5 a3=bfea3dd0 items=0 ppid=2281 pid=2298 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="firefox" exe="/usr/lib/firefox-3.6/firefox" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
Reply With Quote
  #2  
Old 13th October 2010, 09:03 AM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxfedorafirefox
Re: AVC deinal security alert!!!

My suggestion would be to disable selinux, I always have it disabled.
__________________
these command lines are like casino slot machines, every time I input commands NOTHING HAPPENS
Reply With Quote
  #3  
Old 13th October 2010, 05:00 PM
marlonmin Offline
Registered User
 
Join Date: Jun 2007
Posts: 52
windows_7firefox
Re: AVC deinal security alert!!!

Quote:
Originally Posted by errorxp View Post
My suggestion would be to disable selinux, I always have it disabled.
how to disable it?
Reply With Quote
  #4  
Old 13th October 2010, 05:19 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: AVC denial security alert!

What's wrong with following the clear instructions given to fix the problem?
Quote:
Fix Command:

/sbin/restorecon '/usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so'
You'll need to do the same for /usr/local/jdk1.6.0_21/jre/lib/i386/server/libjvm.so and /usr/local/jdk1.6.0_21/jre/lib/i386/libdeploy.so

Or you could use the chcon command:
Code:
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/libdeploy.so
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/server/libjvm.so

Last edited by PabloTwo; 13th October 2010 at 05:23 PM.
Reply With Quote
  #5  
Old 14th October 2010, 08:38 AM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxfedorafirefox
Re: AVC denial security alert!

To disable Selinux:

Code:
su -
gedit /etc/selinux/config
and change it to:
Code:
SELINUX=disabled
Probably needs a reboot after that.
__________________
these command lines are like casino slot machines, every time I input commands NOTHING HAPPENS

Last edited by errorxp; 14th October 2010 at 08:44 AM.
Reply With Quote
  #6  
Old 14th October 2010, 05:39 PM
javaer Offline
Registered User
 
Join Date: Sep 2010
Posts: 19
linuxfedorafirefox
Re: AVC denial security alert!

Quote:
Originally Posted by PabloTwo View Post
What's wrong with following the clear instructions given to fix the problem?

You'll need to do the same for /usr/local/jdk1.6.0_21/jre/lib/i386/server/libjvm.so and /usr/local/jdk1.6.0_21/jre/lib/i386/libdeploy.so

Or you could use the chcon command:
Code:
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/libdeploy.so
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/client/libjvm.so
chcon -t textrel_shlib_t /usr/local/jdk1.6.0_21/jre/lib/i386/server/libjvm.so
Works. thanks

---------- Post added at 08:39 AM GMT ---------- Previous post was at 08:39 AM GMT ----------

Quote:
Originally Posted by errorxp View Post
To disable Selinux:

Code:
su -
gedit /etc/selinux/config
and change it to:
Code:
SELINUX=disabled
Probably needs a reboot after that.
another way. thanks.
Reply With Quote
  #7  
Old 18th October 2010, 06:44 PM
Sicinthemind's Avatar
Sicinthemind Offline
Registered User
 
Join Date: May 2009
Location: Tampa, FL, previously Chicago, IL
Posts: 137
windows_98_nt_2000ie
Re: AVC deinal security alert!!!

Quote:
Originally Posted by errorxp View Post
My suggestion would be to disable selinux, I always have it disabled.
That's the worst idea ever. I can see that for a home system but SELinux prevents your system from performing unintended actions from daemons or users...

Set your SELinux to Permissive and you will see the denial messages but you will still be able to perform the desired actions. You will also see a fix to configure SELinux to Allow those specific actions to take place in the future without SELinux denial. SELinux is an Mandatory Access Control system... if you just disable it on a misconfigured system, your end result can be disasterous.

system-config-selinux or system-config-securitylevel - install one or both and set SELinux to permissive.

It's better to know what happened then to just ignore it and get owned by someone that does know what they are doing.
__________________
Steve Kline - RHCSA, MCITP: Server Admin

Last edited by Sicinthemind; 18th October 2010 at 06:49 PM.
Reply With Quote
Reply

Tags
alert, avc, denial, security

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help: Selinux security alert paardekracht Security and Privacy 2 15th February 2010 10:35 AM
SELinux Security Alert Help rumpletumbler Security and Privacy 3 3rd December 2009 11:14 PM
Internet Explorer security alert bigboss2200 Wibble 16 17th December 2008 05:40 AM


Current GMT-time: 05:49 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat