Bug 630880

Summary: SELinux is preventing /opt/google/talkplugin/GoogleTalkPlugin "remove_name" access on pulse-shm-1395489214.
Product: [Fedora] Fedora Reporter: Rahul Sundaram <sundaram>
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, metherid, mgrepl, smohan, sundaram
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9df185b3e8eb3a5dc9492f24d1afb4b23637bc40b26540ca1d0f14705a75f3bc
Fixed In Version: selinux-policy-3.9.3-4.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-23 12:45:34 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 09:10:20 UTC
Summary:

SELinux is preventing /opt/google/talkplugin/GoogleTalkPlugin "remove_name"
access on pulse-shm-1395489214.

Detailed Description:

[GoogleTalkPlugi has a permissive type (mozilla_plugin_t). This access was not
denied.]

SELinux denied access requested by GoogleTalkPlugi. It is not expected that this
access is required by GoogleTalkPlugi 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                system_u:object_r:tmpfs_t:s0
Target Objects                pulse-shm-1395489214 [ dir ]
Source                        GoogleTalkPlugi
Source Path                   /opt/google/talkplugin/GoogleTalkPlugin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-talkplugin-1.5.1.0-1
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                   8
First Seen                    Tue 07 Sep 2010 02:19:51 AM IST
Last Seen                     Tue 07 Sep 2010 01:51:20 PM IST
Local ID                      625ac41a-1126-498f-bcd0-55929a536fe4
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1283847680.821:1876): avc:  denied  { remove_name } for  pid=2276 comm="GoogleTalkPlugi" name="pulse-shm-1395489214" dev=tmpfs ino=1978033 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1283847680.821:1876): arch=40000003 syscall=10 success=yes exit=0 a0=ffa2fee0 a1=70 a2=485f6ff4 a3=ffa2ff6d items=0 ppid=1 pid=2276 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="GoogleTalkPlugi" exe="/opt/google/talkplugin/GoogleTalkPlugin" subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,GoogleTalkPlugi,mozilla_plugin_t,tmpfs_t,dir,remove_name
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t tmpfs_t:dir remove_name;

Comment 1 Daniel Walsh 2010-09-07 15:53:31 UTC
Do you have any idea what process created the tmpfs_t directory /dev/shm/pulse-shm-1395489214?

Comment 2 Rahul Sundaram 2010-09-07 17:19:11 UTC
Nope.  If  there is any way of figuring it out, let me know and I will give you the info.

Comment 3 Daniel Walsh 2010-09-07 17:40:41 UTC
Are you using some kind of sound service?  mpd?


The pulseaudio files should be created as user_tmpfs_t if they were created by normal user apps.

ls -lZ /dev/shm/pulse*
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-1160940468
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-1361974585
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-1431405227
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-1567729917
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-3176878604
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-3581110005
-r--------. dwalsh dwalsh staff_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-4136531389
-r--------. gdm    gdm    system_u:object_r:user_tmpfs_t:s0 /dev/shm/pulse-shm-568089334

Comment 4 Daniel Walsh 2010-09-07 17:53:20 UTC
Actually it looks like the problem is in mozilla_plugin policy.

Fixed in selinux-policy-3.9.3-1.fc14

Comment 5 Fedora Update System 2010-09-10 16:50:33 UTC
selinux-policy-3.9.3-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-4.fc14

Comment 6 Fedora Update System 2010-09-11 02:18:25 UTC
selinux-policy-3.9.3-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-4.fc14

Comment 7 Fedora Update System 2010-09-23 12:42:15 UTC
selinux-policy-3.9.3-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.