Bug 1273104 - SELinux is preventing iscsid from 'create' accesses on the netlink_iscsi_socket Unknown.
Summary: SELinux is preventing iscsid from 'create' accesses on the netlink_iscsi_sock...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Vit Mojzis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:02161e38e192158f112bddf4f54...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-19 15:31 UTC by Herald van der Breggen
Modified: 2015-11-27 03:53 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-128.21.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-27 03:53:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Herald van der Breggen 2015-10-19 15:31:17 UTC
Description of problem:
trying to attach and mount iscsi drive

systemctl start iscsid.service
iscsiadm -m node --targetname "iqn......" --portal "IP:3260" --login
SELinux is preventing iscsid from 'create' accesses on the netlink_iscsi_socket Unknown.

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

If je denkt dat iscsid standaard create toegang moet hebben tot de  Unknown netlink_iscsi_socket.
Then je moet dit melden als een fout.
Je kunt een locale tactiek module genereren om deze toegang toe te staan.
Do
sta deze toegang nu toe door het uitvoeren van:
# grep iscsid /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:iscsid_t:s0
Target Context                system_u:system_r:iscsid_t:s0
Target Objects                Unknown [ netlink_iscsi_socket ]
Source                        iscsid
Source Path                   iscsid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.16.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.3-200.fc22.x86_64 #1 SMP Thu
                              Oct 8 03:23:55 UTC 2015 x86_64 x86_64
Alert Count                   135
First Seen                    2015-10-16 16:18:40 CEST
Last Seen                     2015-10-19 17:26:04 CEST
Local ID                      ae8de7d3-b405-43d7-b104-e40d0f091bfd

Raw Audit Messages
type=AVC msg=audit(1445268364.198:660): avc:  denied  { create } for  pid=5120 comm="iscsid" scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:system_r:iscsid_t:s0 tclass=netlink_iscsi_socket permissive=0


Hash: iscsid,iscsid_t,iscsid_t,netlink_iscsi_socket,create

Version-Release number of selected component:
selinux-policy-3.13.1-128.16.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Potential duplicate: bug 1266670

Comment 1 Miroslav Grepl 2015-11-10 08:45:23 UTC
Vit,
we have fixes in Rawhide. Could you backport them? Thank you.

Comment 2 Vit Mojzis 2015-11-19 13:26:25 UTC
https://github.com/fedora-selinux/selinux-policy/pull/69#event-469023234

commit 87a8c2c7f70cf5d71cc2ba87f5a7f210dcc19eec
Merge: e3ee3c5 19d02be
Author: Miroslav Grepl <mgrepl>
Date:   Thu Nov 19 11:51:27 2015 +0100

    Merge pull request #69 from vmojzis/f22-contrib
    
    Allow iscsid create netlink iscsid sockets. - backport

commit 19d02bee8b616ef31d64e36434c55e8291019819
Author: Lukas Vrabec <lvrabec>
Date:   Thu Oct 8 09:02:34 2015 +0200

    Allow iscsid create netlink iscsid sockets.

Comment 3 Fedora Update System 2015-11-20 13:12:06 UTC
selinux-policy-3.13.1-128.21.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1bbd3df966

Comment 4 Fedora Update System 2015-11-21 17:51:10 UTC
selinux-policy-3.13.1-128.21.fc22 has been pushed to the Fedora 22 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-1bbd3df966

Comment 5 Fedora Update System 2015-11-27 03:52:08 UTC
selinux-policy-3.13.1-128.21.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.