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 1512852 - avc denied for nscd, avc: denied { read } comm="nscd" name="disable_ipv6" dev="proc"
Summary: avc denied for nscd, avc: denied { read } comm="nscd" name="disable_ipv6" d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.5
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-11-14 09:54 UTC by Sergey Kolosov
Modified: 2018-10-30 10:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:01:27 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:01:53 UTC

Description Sergey Kolosov 2017-11-14 09:54:22 UTC
Description of problem:
I got AVC message with runned nscd after "getent" some host which doesn't have ipv6 address:

type=PROCTITLE msg=audit(1510647341.737:174): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1510647341.737:174): arch=c000003e syscall=2 success=no exit=-13 a0=7f7a0e3ecf18 a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=10303 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(1510647341.737:174): avc:  denied  { read } for  pid=10303 comm="nscd" name="disable_ipv6" dev="proc" ino=7040 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-179.el7
nscd-2.17-218.el7

How reproducible:

Steps to Reproduce:
1. Install and start nscd
2. getent hosts aaa
3. ausearch -m AVC -m USER_AVC -m SELINUX_ERR

Actual results:
type=PROCTITLE msg=audit(1510647341.737:174): proctitle="/usr/sbin/nscd"
type=SYSCALL msg=audit(1510647341.737:174): arch=c000003e syscall=2 success=no exit=-13 a0=7f7a0e3ecf18 a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=10303 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(1510647341.737:174): avc:  denied  { read } for  pid=10303 comm="nscd" name="disable_ipv6" dev="proc" ino=7040 scontext=system_u:system_r:nscd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file

Expected results:
No AVC denials

Additional info:

Comment 5 Sergey Kolosov 2018-05-25 07:39:18 UTC
I am changing arch to unspecified because it is reproducible on all archs supported by rhel.

Comment 9 errata-xmlrpc 2018-10-30 10:01:27 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.