Bug 788013 - SELinux is geeting in iscsid's way
Summary: SELinux is geeting in iscsid's way
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-07 08:43 UTC by Renich Bon Ciric
Modified: 2012-03-24 00:39 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-80.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-24 00:39:43 UTC
Type: ---


Attachments (Terms of Use)

Description Renich Bon Ciric 2012-02-07 08:43:33 UTC
Feb 07 08:35:05 (null) (null): audit(1328603705.278:372): avc: denied { name_connect } for pid=17960 comm=iscsid dest=3261 scontext=unconfined_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket 

I have a ton of those. It seems there is no iscsid policy... is there?

Comment 1 Miroslav Grepl 2012-02-07 09:31:07 UTC
You mean you are getting exactly the same AVC msgs? Related to the 3261/tcp port? Did you setup this port?

Comment 2 Renich Bon Ciric 2012-02-07 09:40:03 UTC
yes, I am getting exactly the same AVC messages. I can post my audit.log if you like.

No, I did not setup the port. I don't know how.

Also, I might speak a bit about the context. I am trying to use iSCSI to store a KVM/Qemu image there. The mount should be located at /var/lib/libvirt/images/iscsi or something like that.

I've noticed you have sone virt booleans:

virt_use_comm --> off
virt_use_execmem --> off
virt_use_fusefs --> off
virt_use_nfs --> off
virt_use_samba --> off
virt_use_sanlock --> off
virt_use_sysfs --> off
virt_use_usb --> on
virt_use_xserver --> off

which applies for iscsi? maybe sysfs?

Comment 3 Daniel Walsh 2012-02-07 14:40:21 UTC
Tom, do you know why iscsid is connecting a tcp socket to port 3261?

grep 3261 /etc/services 
winshadow       3261/tcp                # winShadow
winshadow       3261/udp                # winShadow

It looks like google says something about this port.

Comment 4 Daniel Walsh 2012-02-07 14:43:10 UTC
Looks like starwind working with iscsi?  Something about a Microsoft product.

Renich, if I were you I would execute the following command

semanage port -a -t iscsi_port_t -p tcp 3261

Which if Tom confirms, I believe we should make the default.

Comment 5 Renich Bon Ciric 2012-02-08 04:37:23 UTC
(In reply to comment #4)
> Looks like starwind working with iscsi?  Something about a Microsoft product.
> 
> Renich, if I were you I would execute the following command
> 
> semanage port -a -t iscsi_port_t -p tcp 3261
> 
> Which if Tom confirms, I believe we should make the default.

Thanks, Daniel. I will. Can I expect this on the mainstream package?

Comment 6 Daniel Walsh 2012-02-08 19:40:09 UTC
Yes.

Miroslav can you back port this to F15,F16 and RHEL6?

Comment 7 Miroslav Grepl 2012-02-09 08:36:17 UTC
Added to all releases.

Comment 8 Fedora Update System 2012-02-29 09:34:44 UTC
selinux-policy-3.10.0-78.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-78.fc16

Comment 9 Fedora Update System 2012-03-01 09:25:43 UTC
Package selinux-policy-3.10.0-78.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-78.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-78.fc16
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-03-21 02:27:27 UTC
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-80.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-80.fc16
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-03-24 00:39:43 UTC
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 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.