Bug 638296

Summary: SELinux is preventing /usr/libexec/totem-plugin-viewer "write" access on /home/hicham/.gstreamer-0.10.
Product: [Fedora] Fedora Reporter: Hicham HAOUARI <hicham.haouari>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e300ab0699ac256d8f1e3665f4a9ddd7fbc09616b5f04ae393444871abef6b09
Fixed In Version: selinux-policy-3.9.5-10.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:08:02 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 Hicham HAOUARI 2010-09-28 17:20:58 UTC
Summary:

SELinux is preventing /usr/libexec/totem-plugin-viewer "write" access on
/home/hicham/.gstreamer-0.10.

Detailed Description:

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

SELinux denied access requested by totem-plugin-vi. It is not expected that this
access is required by totem-plugin-vi 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:gstreamer_home_t:s0
Target Objects                /home/hicham/.gstreamer-0.10 [ dir ]
Source                        totem-plugin-vi
Source Path                   /usr/libexec/totem-plugin-viewer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-mozplugin-2.31.6-3.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-7.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-33.rc1.fc14.i686 #1 SMP Sat Sep 25
                              13:44:10 UTC 2010 i686 i686
Alert Count                   4
First Seen                    Tue 28 Sep 2010 05:14:05 PM WET
Last Seen                     Tue 28 Sep 2010 05:14:05 PM WET
Local ID                      e5449336-3b69-4c53-9700-24c1208b2956
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285694045.609:19009): avc:  denied  { write } for  pid=2763 comm="totem-plugin-vi" name=".gstreamer-0.10" dev=sda1 ino=139525 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gstreamer_home_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1285694045.609:19009): avc:  denied  { add_name } for  pid=2763 comm="totem-plugin-vi" name="registry.i386.bin.tmp0073JV" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gstreamer_home_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1285694045.609:19009): avc:  denied  { create } for  pid=2763 comm="totem-plugin-vi" name="registry.i386.bin.tmp0073JV" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gstreamer_home_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1285694045.609:19009): avc:  denied  { write } for  pid=2763 comm="totem-plugin-vi" name="registry.i386.bin.tmp0073JV" dev=sda1 ino=137738 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gstreamer_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1285694045.609:19009): arch=40000003 syscall=5 success=yes exit=8 a0=87e3100 a1=80c2 a2=180 a3=9 items=0 ppid=1 pid=2763 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="totem-plugin-vi" exe="/usr/libexec/totem-plugin-viewer" subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,totem-plugin-vi,mozilla_plugin_t,gstreamer_home_t,dir,write
audit2allow suggests:

#============= mozilla_plugin_t ==============
#!!!! The source type 'mozilla_plugin_t' can write to a 'dir' of the following types:
# nsplugin_home_t, mozilla_plugin_tmp_t, tmpfs_t, config_home_t, user_fonts_cache_t, mozilla_plugin_tmpfs_t, user_home_t, tmp_t

allow mozilla_plugin_t gstreamer_home_t:dir { write add_name };
allow mozilla_plugin_t gstreamer_home_t:file { write create };

Comment 1 Daniel Walsh 2010-09-28 20:08:45 UTC
*** Bug 638294 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2010-09-28 20:08:55 UTC
*** Bug 638293 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2010-09-28 20:09:05 UTC
*** Bug 638292 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2010-09-28 20:11:41 UTC
Fixed in selinux-policy-3.9.5-8.fc14

Comment 5 Fedora Update System 2010-10-04 19:35:53 UTC
selinux-policy-3.9.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

Comment 6 Fedora Update System 2010-10-05 13:05:21 UTC
selinux-policy-3.9.5-10.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.