RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1589295 - SELinux map denials for iscsid
Summary: SELinux map denials for iscsid
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-08 15:37 UTC by Nate Straz
Modified: 2018-10-30 10:05 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-203.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:05:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3111 0 None None None 2018-10-30 10:05:41 UTC

Description Nate Straz 2018-06-08 15:37:48 UTC
Description of problem:

Getting new SELinux AVC's from the new map permission.

[root@host-140 ~]# ausearch -m AVC -se iscsid_t | audit2allow
#============= NetworkManager_t ==============
allow NetworkManager_t iscsid_exec_t:file map;

#============= iscsid_t ==============
allow iscsid_t iscsi_tmp_t:file map;
allow iscsid_t modules_object_t:file map;

[root@host-140 ~]# ausearch -m AVC -se iscsid_t -se NetworkManager_t --just-one
----
time->Thu Jun  7 16:20:04 2018
type=PROCTITLE msg=audit(1528406404.625:31): proctitle="(null)"
type=SYSCALL msg=audit(1528406404.625:31): arch=c000003e syscall=59 success=no exit=-13 a0=7f641fdfdb28 a1=7ffc915660f0 a2=7ffc915660d0 a3=7ffc91565910 items=0 ppid=645 pid=694 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iscsiadm" exe="/usr/sbin/iscsiadm" subj=system_u:system_r:NetworkManager_t:s0 key=(null)
type=AVC msg=audit(1528406404.625:31): avc:  denied  { map } for  pid=694 comm="iscsiadm" path="/usr/sbin/iscsiadm" dev="dm-0" ino=9287874 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:iscsid_exec_t:s0 tclass=file permissive=0

[root@host-140 ~]# ausearch -m AVC -se iscsid_t -se iscsi_tmp_t --just-one
----
time->Thu Jun  7 16:20:07 2018
type=PROCTITLE msg=audit(1528406407.512:46): proctitle="/usr/sbin/iscsid"
type=SYSCALL msg=audit(1528406407.512:46): arch=c000003e syscall=30 success=no exit=-13 a0=0 a1=0 a2=0 a3=0 items=0 ppid=1 pid=1097 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iscsid" exe="/usr/sbin/iscsid" subj=system_u:system_r:iscsid_t:s0 key=(null)
type=AVC msg=audit(1528406407.512:46): avc:  denied  { map } for  pid=1097 comm="iscsid" path=2F535953563030303030303030202864656C6574656429 dev="tmpfs" ino=0 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:iscsi_tmp_t:s0 tclass=file permissive=0
[root@host-140 ~]# ausearch -m AVC -se iscsid_t -se modules_object_t --just-one
----
time->Thu Jun  7 23:35:21 2018
type=PROCTITLE msg=audit(1528432521.630:47): proctitle="/usr/sbin/iscsid"
type=SYSCALL msg=audit(1528432521.630:47): arch=c000003e syscall=9 success=yes exit=140371476643840 a0=0 a1=5a910 a2=1 a3=2 items=0 ppid=1 pid=1103 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iscsid" exe="/usr/sbin/iscsid" subj=system_u:system_r:iscsid_t:s0 key=(null)
type=AVC msg=audit(1528432521.630:47): avc:  denied  { map } for  pid=1103 comm="iscsid" path="/usr/lib/modules/3.10.0-889.el7.x86_64/modules.dep.bin" dev="dm-0" ino=9496275 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=file permissive=1


Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-202.el7.noarch

[root@host-140 ~]# rpm -qf /usr/sbin/iscsid
iscsi-initiator-utils-6.2.0.874-7.el7.x86_64


How reproducible:
Easily

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 errata-xmlrpc 2018-10-30 10:05:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3111


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