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 1479350 - AVC denials seen while running ipa-nis-integration suite.
Summary: AVC denials seen while running ipa-nis-integration suite.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.4
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-08 12:09 UTC by Sudhir Menon
Modified: 2018-04-10 12:37 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-3.13.1-188.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:36:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:37:47 UTC

Description Sudhir Menon 2017-08-08 12:09:06 UTC
Description of problem: AVC denials are seen while running ipa-nis-integration test suite.


Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-166.el7.noarch
ipa-server-4.5.0-21.el7_4.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run ipa-nis-integration test suite.

Actual results:
Info: Searching AVC errors produced since 1502190265.07 (Tue Aug  8 16:34:25 2017)
Searching logs...
Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 08/08/2017 16:34:25 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.fb47zr 2>&1'
----
time->Tue Aug  8 16:35:01 2017
type=USER_AVC msg=audit(1502190301.932:422): pid=32562 uid=28 auid=4294967295 ses=4294967295 subj=system_u:system_r:nscd_t:s0 msg='avc:  received policyload notice (seqno=7)  exe="?" sauid=28 hostname=? addr=? terminal=?'
----
time->Tue Aug  8 16:35:03 2017
type=USER_AVC msg=audit(1502190303.499:426): pid=32562 uid=28 auid=4294967295 ses=4294967295 subj=system_u:system_r:nscd_t:s0 msg='avc:  received policyload notice (seqno=8)  exe="?" sauid=28 hostname=? addr=? terminal=?'
----
time->Tue Aug  8 16:35:03 2017
type=USER_AVC msg=audit(1502190303.576:428): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=7)  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
----
time->Tue Aug  8 16:35:03 2017
type=USER_AVC msg=audit(1502190303.576:429): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=8)  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
----
time->Tue Aug  8 16:35:04 2017
type=PROCTITLE msg=audit(1502190304.895:434): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1502190304.895:434): arch=c000003e syscall=2 success=no exit=-13 a0=7f07633aff28 a1=0 a2=7f07633aff47 a3=0 items=0 ppid=1 pid=32562 auid=4294967295 uid=28 gid=28 euid=28 suid=28 fsuid=28 egid=28 sgid=28 fsgid=28 tty=(none) ses=4294967295 comm="nscd" exe="/usr/sbin/nscd" subj=system_u:system_r:nscd_t:s0 key=(null)
type=AVC msg=audit(1502190304.895:434): avc:  denied  { search } for  pid=32562 comm="nscd" name="yp" dev="dm-0" ino=100778817 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:var_yp_t:s0 tclass=dir
----
time->Tue Aug  8 16:35:02 2017
type=PROCTITLE msg=audit(1502190302.733:423): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1502190302.733:423): arch=c000003e syscall=2 success=no exit=-13 a0=7f0762fadf98 a1=0 a2=7f0762fadfb7 a3=0 items=0 ppid=1 pid=32562 auid=4294967295 uid=28 gid=28 euid=28 suid=28 fsuid=28 egid=28 sgid=28 fsgid=28 tty=(none) ses=4294967295 comm="nscd" exe="/usr/sbin/nscd" subj=system_u:system_r:nscd_t:s0 key=(null)
type=AVC msg=audit(1502190302.733:423): avc:  denied  { search } for  pid=32562 comm="nscd" name="yp" dev="dm-0" ino=100778817 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:var_yp_t:s0 tclass=dir
----
time->Tue Aug  8 16:35:02 2017
type=PROCTITLE msg=audit(1502190302.734:424): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1502190302.734:424): arch=c000003e syscall=49 success=no exit=-13 a0=15 a1=7f0762fade40 a2=10 a3=33 items=0 ppid=1 pid=32562 auid=4294967295 uid=28 gid=28 euid=28 suid=28 fsuid=28 egid=28 sgid=28 fsgid=28 tty=(none) ses=4294967295 comm="nscd" exe="/usr/sbin/nscd" subj=system_u:system_r:nscd_t:s0 key=(null)
type=AVC msg=audit(1502190302.734:424): avc:  denied  { name_bind } for  pid=32562 comm="nscd" src=958 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:hi_reserved_port_t:s0 tclass=tcp_socket
----
time->Tue Aug  8 16:35:02 2017
type=PROCTITLE msg=audit(1502190302.746:425): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1502190302.746:425): arch=c000003e syscall=49 success=no exit=-13 a0=15 a1=7f0762fade10 a2=10 a3=72 items=0 ppid=1 pid=32562 auid=4294967295 uid=28 gid=28 euid=28 suid=28 fsuid=28 egid=28 sgid=28 fsgid=28 tty=(none) ses=4294967295 comm="nscd" exe="/usr/sbin/nscd" subj=system_u:system_r:nscd_t:s0 key=(null)
type=AVC msg=audit(1502190302.746:425): avc:  denied  { name_bind } for  pid=32562 comm="nscd" src=959 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:hi_reserved_port_t:s0 tclass=udp_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.fb47zr | /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.drqcGl 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.13.1-166.el7.noarch

Expected results:
Fix the AVC denials seen.

Additional info:

Comment 2 Milos Malik 2017-08-08 20:11:49 UTC
Could you enable the nis_enabled boolean and then re-run your scenario?

# setsebool -P nis_enabled on

Do you still see SELinux denials?

Comment 17 errata-xmlrpc 2018-04-10 12:36:40 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:0763


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