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 1836795 - SELinux prevents ns-slapd from reading directories on cgroup file-system
Summary: SELinux prevents ns-slapd from reading directories on cgroup file-system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.3
Hardware: Unspecified
OS: Linux
medium
high
Target Milestone: rc
: 8.3
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
: 1843920 (view as bug list)
Depends On:
Blocks: 1842946
TreeView+ depends on / blocked
 
Reported: 2020-05-18 07:52 UTC by Steeve Goveas
Modified: 2023-12-15 17:56 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:56:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4528 0 None None None 2020-11-04 01:57:06 UTC

Description Steeve Goveas 2020-05-18 07:52:36 UTC
Description of problem:
selinux denies read access to ns-slapd

Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-43.el8.noarch

How reproducible:
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
Memory protection checking:     actual (secure)
Max kernel policy version:      32
selinux-policy-3.14.3-43.el8.noarch
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.931:1659): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.931:1659): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.931:1659): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.933:1660): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.933:1660): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.933:1660): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.934:1661): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.934:1661): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.934:1661): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.935:1662): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.935:1662): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.935:1662): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.935:1663): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.935:1663): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.935:1663): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.942:1664): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.942:1664): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.942:1664): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.944:1665): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.944:1665): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.944:1665): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0
----
time->Mon May 18 03:09:38 2020
type=PROCTITLE msg=audit(1589785778.945:1666): proctitle=2F7573722F7362696E2F6E732D736C617064002D44002F6574632F6469727372762F736C6170642D74657374002D69002F72756E2F6469727372762F736C6170642D746573742E706964
type=SYSCALL msg=audit(1589785778.945:1666): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=7f1f63804620 a2=90800 a3=0 items=0 ppid=1 pid=22402 auid=4294967295 uid=65534 gid=65534 euid=65534 suid=65534 fsuid=65534 egid=65534 sgid=65534 fsgid=65534 tty=(none) ses=4294967295 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=system_u:system_r:dirsrv_t:s0 key=(null)
type=AVC msg=audit(1589785778.945:1666): avc:  denied  { read } for  pid=22402 comm="ns-slapd" name="/" dev="cgroup" ino=1 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=0

Comment 1 Zdenek Pytela 2020-05-18 08:42:52 UTC
These are the current rules in the policy:

allow dirsrv_t cgroup_t:dir { getattr open search };
allow dirsrv_t cgroup_t:file { getattr ioctl lock open read };
allow dirsrv_t cgroup_t:lnk_file { getattr read };

dir read seems to be required to add.

Comment 2 Zdenek Pytela 2020-06-10 14:06:05 UTC
*** Bug 1843920 has been marked as a duplicate of this bug. ***

Comment 6 Zdenek Pytela 2020-06-15 09:15:52 UTC
*** Bug 1846598 has been marked as a duplicate of this bug. ***

Comment 15 errata-xmlrpc 2020-11-04 01:56:37 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 (selinux-policy bug fix and enhancement update), 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-2020:4528


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