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 1206125 - when SLP support is enabled in ypserv then ypserv service triggers AVCs
Summary: when SLP support is enabled in ypserv then ypserv service triggers AVCs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-26 11:25 UTC by Milos Malik
Modified: 2015-11-19 10:27 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-32.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 10:27:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2300 0 normal SHIPPED_LIVE selinux-policy bug fix update 2015-11-19 09:55:26 UTC

Description Milos Malik 2015-03-26 11:25:06 UTC
Description of problem:
 * the SLP support is by default disabled, which means that these AVCs do not usually appear

Version-Release number of selected component (if applicable):
selinux-policy-sandbox-3.13.1-23.el7.noarch
selinux-policy-devel-3.13.1-23.el7.noarch
selinux-policy-doc-3.13.1-23.el7.noarch
selinux-policy-mls-3.13.1-23.el7.noarch
selinux-policy-minimum-3.13.1-23.el7.noarch
selinux-policy-targeted-3.13.1-23.el7.noarch
selinux-policy-3.13.1-23.el7.noarch

How reproducible:
always

Steps to Reproduce:
# grep ^slp /etc/ypserv.conf 
slp: domain
slp_timeout: 10
# service ypserv start
# search for AVCs

Actual results (enforcing mode):
----
type=SYSCALL msg=audit(03/26/2015 07:14:33.540:301557) : arch=x86_64 syscall=connect success=no exit=-13(Permission denied) a0=0x7 a1=0x7fffe877be00 a2=0x10 a3=0x0 items=0 ppid=1 pid=18712 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ypserv exe=/usr/sbin/ypserv subj=system_u:system_r:ypserv_t:s0 key=(null) 
type=AVC msg=audit(03/26/2015 07:14:33.540:301557) : avc:  denied  { connect } for  pid=18712 comm=ypserv lport=665 scontext=system_u:system_r:ypserv_t:s0 tcontext=system_u:system_r:ypserv_t:s0 tclass=tcp_socket 
----

Actual results (permissive mode):
----
type=SYSCALL msg=audit(03/26/2015 07:15:22.037:301767) : arch=x86_64 syscall=connect success=yes exit=0 a0=0x7 a1=0x7fff97645120 a2=0x10 a3=0x0 items=0 ppid=1 pid=21316 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ypserv exe=/usr/sbin/ypserv subj=system_u:system_r:ypserv_t:s0 key=(null) 
type=AVC msg=audit(03/26/2015 07:15:22.037:301767) : avc:  denied  { name_connect } for  pid=21316 comm=ypserv dest=111 scontext=system_u:system_r:ypserv_t:s0 tcontext=system_u:object_r:portmap_port_t:s0 tclass=tcp_socket 
type=AVC msg=audit(03/26/2015 07:15:22.037:301767) : avc:  denied  { connect } for  pid=21316 comm=ypserv lport=41551 scontext=system_u:system_r:ypserv_t:s0 tcontext=system_u:system_r:ypserv_t:s0 tclass=tcp_socket 
----

Expected results:
 * no AVCs

Comment 1 Milos Malik 2015-03-26 11:36:17 UTC
# rpm -qa yp\*
ypbind-1.37.1-7.el7.x86_64
ypserv-2.31-8.el7.x86_64
yp-tools-2.14-3.el7.x86_64
#

Comment 2 Lukas Vrabec 2015-07-09 12:50:34 UTC
commit 8d4143da48d04104f48c60d7f99ce390dfdbd74c
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 9 14:47:34 2015 +0200

    Allow connect ypserv to portmap_port_t.

Comment 6 errata-xmlrpc 2015-11-19 10:27:52 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://rhn.redhat.com/errata/RHBA-2015-2300.html


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