Bug 1260882

Summary: SELinux is preventing /usr/sbin/fcoemon from 'create' accesses on the netlink_scsitransport_socket Unknown.
Product: [Fedora] Fedora Reporter: Alexander Kurtakov <akurtako>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b3c5579b6380bdf35cfb9e037ba331e85c37bb6d7f8d583348e1dabda791cb40
Fixed In Version: selinux-policy-3.13.1-151.fc23 selinux-policy-3.13.1-150.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 00:05:16 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 Alexander Kurtakov 2015-09-08 07:17:17 UTC
Description of problem:
SELinux is preventing /usr/sbin/fcoemon from 'create' accesses on the netlink_scsitransport_socket Unknown.

*****  Plugin restorecon_source (99.5 confidence) suggests   *****************

If you want to fix the label. 
/usr/sbin/fcoemon default label should be fcoemon_exec_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /usr/sbin/fcoemon

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that fcoemon should be allowed create access on the Unknown netlink_scsitransport_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 fcoemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:fcoemon_t:s0
Target Context                system_u:system_r:fcoemon_t:s0
Target Objects                Unknown [ netlink_scsitransport_socket ]
Source                        fcoemon
Source Path                   /usr/sbin/fcoemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           fcoe-utils-1.0.30-3.git91c0c8c.fc23.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-146.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.0-300.fc23.x86_64 #1 SMP Fri
                              Sep 4 13:27:08 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-09-07 14:59:21 EEST
Last Seen                     2015-09-07 14:59:21 EEST
Local ID                      835e7638-493f-4f48-8962-9e4b22513897

Raw Audit Messages
type=AVC msg=audit(1441627161.945:460): avc:  denied  { create } for  pid=1680 comm="fcoemon" scontext=system_u:system_r:fcoemon_t:s0 tcontext=system_u:system_r:fcoemon_t:s0 tclass=netlink_scsitransport_socket permissive=0


type=SYSCALL msg=audit(1441627161.945:460): arch=x86_64 syscall=socket success=no exit=EACCES a0=10 a1=2 a2=12 a3=8 items=0 ppid=1 pid=1680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=fcoemon exe=/usr/sbin/fcoemon subj=system_u:system_r:fcoemon_t:s0 key=(null)

Hash: fcoemon,fcoemon_t,fcoemon_t,netlink_scsitransport_socket,create

Version-Release number of selected component:
selinux-policy-3.13.1-146.fc23.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.0-300.fc23.x86_64
type:           libreport

Comment 1 Fedora Update System 2015-10-09 14:14:37 UTC
selinux-policy-3.13.1-150.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f4305656a5

Comment 2 Fedora Update System 2015-10-11 08:25:42 UTC
selinux-policy-3.13.1-150.fc23 has been pushed to the Fedora 23 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 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f4305656a5

Comment 3 Fedora Update System 2015-10-13 00:04:59 UTC
selinux-policy-3.13.1-150.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.