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 896032 - missing name_connect operation in selinux-policy (saslauthd)
Summary: missing name_connect operation in selinux-policy (saslauthd)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
: 965146 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-16 14:00 UTC by David Spurek
Modified: 2015-03-02 05:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:15:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Spurek 2013-01-16 14:00:50 UTC
Description of problem:
type=SYSCALL msg=audit(1358087129.865:571): arch=c000003e syscall=42 success=no exit=-13 a0=8 a1=24bf2f0 a2=10 a3=7fffcde23254 items=0 ppid=19461 pid=19462 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="saslauthd" exe="/usr/sbin/saslauthd" subj=system_u:system_r:saslauthd_t:s0 key=(null)
type=AVC msg=audit(1358087129.865:571): avc:  denied  { name_connect } for  pid=19462 comm="saslauthd" dest=389 scontext=system_u:system_r:saslauthd_t:s0 tcontext=system_u:object_r:ldap_port_t:s0 tclass=tcp_socket

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

How reproducible:
always

Steps to Reproduce:
1. run /CoreOS/cyrus-sasl/Sanity/sanity-saslauthd-and-Cyrus-SASL-Plugins
2.
3.
  
Actual results:
AVC found

Expected results:
no AVC found

Additional info:
type=SYSCALL msg=audit(1358087129.865:571): arch=c000003e syscall=42 success=no exit=-13 a0=8 a1=24bf2f0 a2=10 a3=7fffcde23254 items=0 ppid=19461 pid=19462 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="saslauthd" exe="/usr/sbin/saslauthd" subj=system_u:system_r:saslauthd_t:s0 key=(null)
type=AVC msg=audit(1358087129.865:571): avc:  denied  { name_connect } for  pid=19462 comm="saslauthd" dest=389 scontext=system_u:system_r:saslauthd_t:s0 tcontext=system_u:object_r:ldap_port_t:s0 tclass=tcp_socket
Fail: AVC messages found.
Checking for errors...
Using stronger AVC checks.
	Define empty RHTS_OPTION_STRONGER_AVC parameter if this causes any problems.
Running 'cat /mnt/testarea/tmp.rhts-db-submit-result.7J2J2M | /sbin/ausearch -m AVC -m SELINUX_ERR'
Fail: AVC messages found.
Running 'cat %s | /sbin/ausearch -m USER_AVC >/mnt/testarea/tmp.rhts-db-submit-result.kMhlcm 2>&1'
Info: No AVC messages found.
/bin/grep 'avc: ' /mnt/testarea/dmesg.log | /bin/grep --invert-match TESTOUT.log
No AVC messages found in dmesg
Running '/usr/sbin/sestatus'
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
Running 'rpm -q selinux-policy || true'
selinux-policy-3.11.1-54.el7.noarch

Comment 2 Milos Malik 2013-02-20 12:47:08 UTC
Following rule (unconditioned by any boolean) is present in RHEL-5.9 and RHEL-6.4, but is missing in RHEL-7:

allow saslauthd_t ldap_port_t : tcp_socket { recv_msg send_msg name_connect }

Comment 3 Miroslav Grepl 2013-05-22 06:44:09 UTC
*** Bug 965146 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2013-05-22 07:14:16 UTC
Fixed in selinux-policy-3.12.1-46.el7

Comment 6 Ludek Smid 2014-06-13 11:15:58 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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