Bug 433703 - update iscsi policy for isns
Summary: update iscsi policy for isns
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy   
(Show other bugs)
Version: 5.2
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2008-02-20 22:09 UTC by Mike Christie
Modified: 2008-05-21 16:07 UTC (History)
4 users (show)

Fixed In Version: RHBA-2008-0465
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-21 16:07:10 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
selinux output (2.43 KB, application/octet-stream)
2008-02-20 22:09 UTC, Mike Christie
no flags Details
patch to allow isns discovery (691 bytes, text/x-patch)
2008-02-20 22:11 UTC, Mike Christie
no flags Details
selinux port outpout (2.70 KB, text/plain)
2008-02-21 17:11 UTC, Mike Christie
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0465 normal SHIPPED_LIVE selinux-policy bug fix update 2008-05-20 14:36:31 UTC

Description Mike Christie 2008-02-20 22:09:20 UTC
Description of problem:

When running isns discovery with iscsiadm/iscsid we get the selinux error in the

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Mike Christie 2008-02-20 22:09:52 UTC
Created attachment 295460 [details]
selinux output

Here is the selinux output.

Comment 2 Mike Christie 2008-02-20 22:11:47 UTC
Created attachment 295461 [details]
patch to allow isns discovery

Here is a patch made over 2.4.6-121.

I know it is late. As I said in the other bz, I have been running without
selinux on all my machines when I thought it was always on, so I have been
redoing all my testing and Barry/QE has been catching the ones I have not
started on. Sorry about all this.

Comment 3 RHEL Product and Program Management 2008-02-20 22:17:47 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 4 Daniel Walsh 2008-02-20 22:21:19 UTC
The AVC messages that you attached is incorrect.  Did you hand edit this or was
it created by the kernel directly?

Comment 5 Daniel Walsh 2008-02-20 22:21:58 UTC
The avc specifies the port as being iscsi_t rather then port_t.

Comment 6 Mike Christie 2008-02-21 17:11:31 UTC
Created attachment 295541 [details]
selinux port outpout

I found the problem. Originally I got the attached selinux error, and for the
PORT_TYPE I typed in iscsid_t instead of iscsi_port_t. When I use the correct
type I do not need the change in the other comment.

Is there any way I can make it so open-iscsi can always use port 3205 at least?
It is the default port for isns traffic in the isns spec, or do we always have
to do the semanage port command?

Comment 7 Daniel Walsh 2008-02-21 18:17:43 UTC
Fixed in selinux-policy-2.4.6-122.el5

Comment 9 Eduard Benes 2008-04-14 12:55:50 UTC
Mike, could you please try the latest selinux policy (128 or >121) and reply 
here whether it solves the problem? Thanks.

Comment 11 errata-xmlrpc 2008-05-21 16:07:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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