Bug 974738 - SELinux is preventing /usr/lib/xulrunner/plugin-container from 'unlink' accesses on the file /root/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sxx.
Summary: SELinux is preventing /usr/lib/xulrunner/plugin-container from 'unlink' acces...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:eea1be677af9103ab319ca3703d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-15 07:01 UTC by Sherman
Modified: 2013-06-15 10:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-15 10:43:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sherman 2013-06-15 07:01:48 UTC
Description of problem:
SELinux is preventing /usr/lib/xulrunner/plugin-container from 'unlink' accesses on the file /root/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sxx.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that plugin-container should be allowed unlink access on the settings.sxx file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep plugin-containe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/.macromedia/Flash_Player/macromedia.com/supp
                              ort/flashplayer/sys/settings.sxx [ file ]
Source                        plugin-containe
Source Path                   /usr/lib/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-21.0-4.fc17.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-169.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.13-100.fc17.i686 #1 SMP Mon
                              May 13 13:51:09 UTC 2013 i686 i686
Alert Count                   13
First Seen                    2013-06-15 03:59:36 UYT
Last Seen                     2013-06-15 03:59:37 UYT
Local ID                      747c5101-eb87-4150-8920-46caedda5117

Raw Audit Messages
type=AVC msg=audit(1371279577.685:127): avc:  denied  { unlink } for  pid=2127 comm="plugin-containe" name="settings.sxx" dev="dm-1" ino=1048621 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file


type=SYSCALL msg=audit(1371279577.685:127): arch=i386 syscall=unlink success=no exit=EACCES a0=b4d93180 a1=0 a2=b5f9e688 a3=bfb1f5ac items=0 ppid=2064 pid=2127 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=(none) comm=plugin-containe exe=/usr/lib/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,admin_home_t,file,unlink

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t admin_home_t:file unlink;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t admin_home_t:file unlink;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.13-100.fc17.i686
type:           libreport

Comment 1 Daniel Walsh 2013-06-15 10:43:27 UTC
You should never run firefox as root,  this is not supported by SELinux.  THis is very dangerous.


Note You need to log in before you can comment on or make changes to this bug.