Bug 638294

Summary: SELinux is preventing /usr/libexec/totem-plugin-viewer "remove_name" access on registry.i386.bin.tmp0073JV.
Product: [Fedora] Fedora Reporter: Hicham HAOUARI <hicham.haouari>
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
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3b28fec56aa39459583d344c430712cfd3e84b1757ca353a0d6cfc476a110992
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-28 20:08:45 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:03 UTC
Summary:

SELinux is preventing /usr/libexec/totem-plugin-viewer "remove_name" access on
registry.i386.bin.tmp0073JV.

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                registry.i386.bin.tmp0073JV [ 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                   3
First Seen                    Tue 28 Sep 2010 05:14:05 PM WET
Last Seen                     Tue 28 Sep 2010 05:14:05 PM WET
Local ID                      2db3b665-6b00-4cd1-8d1a-653cf03b0f05
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285694045.975:19010): avc:  denied  { remove_name } 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=dir

node=(removed) type=AVC msg=audit(1285694045.975:19010): avc:  denied  { rename } 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=AVC msg=audit(1285694045.975:19010): avc:  denied  { unlink } for  pid=2763 comm="totem-plugin-vi" name="registry.i386.bin" dev=sda1 ino=140900 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.975:19010): arch=40000003 syscall=38 success=yes exit=0 a0=87e3100 a1=85d3000 a2=5a8d390 a3=87e4a40 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,remove_name
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t gstreamer_home_t:dir remove_name;
allow mozilla_plugin_t gstreamer_home_t:file { rename unlink };

Comment 1 Daniel Walsh 2010-09-28 20:08:45 UTC

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