Bug 703606

Summary: SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container from 'getattr' accesses on the sock_file /var/run/pcscd.comm.
Product: [Fedora] Fedora Reporter: Roman Melihhov <roman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:74cacc23621c030b0591f303c57bd2a8438f0c68689a2799ab8ecf662333b3f1
Fixed In Version: selinux-policy-3.9.7-42.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-12 05:17:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Roman Melihhov 2011-05-10 19:30:19 UTC
SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container from 'getattr' accesses on the sock_file /var/run/pcscd.comm.

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

If you believe that plugin-container should be allowed getattr access on the pcscd.comm sock_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                system_u:object_r:pcscd_var_run_t:s0
Target Objects                /var/run/pcscd.comm [ sock_file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-1.9.2/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-1.9.2.17-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.x86_64 #1
                              SMP Tue May 3 13:23:06 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 10 May 2011 10:16:23 PM EEST
Last Seen                     Tue 10 May 2011 10:16:23 PM EEST
Local ID                      239efe25-cf90-43be-8804-af28ea56500f

Raw Audit Messages
type=AVC msg=audit(1305054983.11:26186): avc:  denied  { getattr } for  pid=2808 comm="plugin-containe" path="/var/run/pcscd.comm" dev=dm-0 ino=5884 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pcscd_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1305054983.11:26186): arch=x86_64 syscall=stat success=yes exit=0 a0=7f5f1222290b a1=7f5f219f3910 a2=7f5f219f3910 a3=7f5f219f3680 items=0 ppid=2698 pid=2808 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-1.9.2/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,pcscd_var_run_t,sock_file,getattr

audit2allow

#============= mozilla_plugin_t ==============
#!!!! This avc is allowed in the current policy

allow mozilla_plugin_t pcscd_var_run_t:sock_file getattr;

audit2allow -R

#============= mozilla_plugin_t ==============
#!!!! This avc is allowed in the current policy

allow mozilla_plugin_t pcscd_var_run_t:sock_file getattr;

Comment 1 Miroslav Grepl 2011-05-11 07:58:13 UTC
Fixed in selinux-policy-3.9.7-42.fc14

Comment 2 Fedora Update System 2011-05-27 15:46:18 UTC
selinux-policy-3.9.7-42.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14

Comment 3 Fedora Update System 2011-05-27 20:28:15 UTC
Package selinux-policy-3.9.7-42.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-42.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-07-12 05:15:44 UTC
selinux-policy-3.9.7-42.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.