Bug 631268

Summary: SELinux is preventing /usr/lib64/xulrunner-2.0b4/plugin-container "remove_name" access on wakeup.sol.
Product: [Fedora] Fedora Reporter: Rahul Sundaram <sundaram>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl, smohan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f5ac77d68e8d17ccc6da2499e1a48d1cc203594f8eff50bcd3ba9d729ca107e4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-07 17:57:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rahul Sundaram 2010-09-07 17:44:25 UTC
Summary:

SELinux is preventing /usr/lib64/xulrunner-2.0b4/plugin-container "remove_name"
access on wakeup.sol.

Detailed Description:

[plugin-containe has a permissive type (mozilla_plugin_t). This access was not
denied.]

SELinux denied access requested by plugin-containe. It is not expected that this
access is required by plugin-containe and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:nsplugin_home_t:s0
Target Objects                wakeup.sol [ dir ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-2.0b4/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner2-2.0-0.5.b4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.0-2.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.4-12.fc14.x86_64 #1 SMP
                              Fri Aug 27 07:45:05 UTC 2010 x86_64 x86_64
Alert Count                   47
First Seen                    Mon 06 Sep 2010 07:50:07 PM IST
Last Seen                     Tue 07 Sep 2010 10:38:45 PM IST
Local ID                      ec14c6b8-0d83-4bf9-8e28-862b4c1253a1
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1283879325.200:2134): avc:  denied  { remove_name } for  pid=28290 comm="plugin-containe" name="wakeup.sol" dev=dm-2 ino=3670042 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:nsplugin_home_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1283879325.200:2134): avc:  denied  { unlink } for  pid=28290 comm="plugin-containe" name="wakeup.sol" dev=dm-2 ino=3670042 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:nsplugin_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1283879325.200:2134): arch=c000003e syscall=87 success=yes exit=0 a0=7f6d2b8633a0 a1=7fff63170740 a2=0 a3=6f6f672e6c69616d items=0 ppid=28247 pid=28290 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="plugin-containe" exe="/usr/lib64/xulrunner-2.0b4/plugin-container" subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,plugin-containe,mozilla_plugin_t,nsplugin_home_t,dir,remove_name
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t nsplugin_home_t:dir remove_name;
allow mozilla_plugin_t nsplugin_home_t:file unlink;

Comment 1 Daniel Walsh 2010-09-07 17:57:44 UTC

*** This bug has been marked as a duplicate of bug 631269 ***