Bug 1005545

Summary: SELinux is preventing /usr/bin/flare-grab from 'create' accesses on the packet_socket .
Product: [Fedora] Fedora Reporter: mamii <sarrab1976>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl, sarrab1976
Target Milestone: ---Flags: mgrepl: needinfo? (sarrab1976)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9a07011313567a6a924d47a6db0b89b4a3523724b487fc3b2b75edd95ae857b2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 17:14:27 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 mamii 2013-09-08 08:27:51 UTC
Description of problem:
SELinux is preventing /usr/bin/flare-grab from 'create' accesses on the packet_socket .

*****  Plugin mozplugger (99.1 confidence) suggests  *************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests  ***************************

If you believe that flare-grab should be allowed create access on the  packet_socket 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 flare-grab /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:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Objects                 [ packet_socket ]
Source                        flare-grab
Source Path                   /usr/bin/flare-grab
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           flareget-1.5-12.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.1.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.10-200.fc19.x86_64 #1 SMP Thu
                              Aug 29 19:05:45 UTC 2013 x86_64 x86_64
Alert Count                   52
First Seen                    2013-07-25 11:57:16 CET
Last Seen                     2013-09-08 09:23:26 CET
Local ID                      57a7603e-1ef1-4270-8980-eaa8cf7e0107

Raw Audit Messages
type=AVC msg=audit(1378628606.215:467): avc:  denied  { create } for  pid=3478 comm="flare-grab" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tclass=packet_socket


type=SYSCALL msg=audit(1378628606.215:467): arch=x86_64 syscall=socket success=no exit=EACCES a0=11 a1=3 a2=300 a3=0 items=0 ppid=3307 pid=3478 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=flare-grab exe=/usr/bin/flare-grab subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: flare-grab,mozilla_plugin_t,mozilla_plugin_t,packet_socket,create

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.10-200.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-09-09 17:14:27 UTC
Do you know which plugin it causes?

# setsebool -P unconfined_mozilla_plugin_transition 0

will make it working.