Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1491235

Summary: SELinux doesn't allow CTDB to set system resource limits
Product: Red Hat Enterprise Linux 7 Reporter: Anoop C S <anoopcs>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: anoopcs, gdeschner, lvrabec, mgrepl, mmalik, mthacker, pablo.mendezhernandez, plautrba, rhs-smb, ssekidde, toneata, vdas
Target Milestone: rcFlags: toneata: needinfo-
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-174.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1472171 Environment:
Last Closed: 2018-04-10 12:43:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1472171    

Comment 2 Milos Malik 2017-09-13 16:31:17 UTC
Following SELinux denials appeared in permissive mode:
----
type=PROCTITLE msg=audit(09/13/2017 12:28:06.850:300) : proctitle=/bin/sh /usr/sbin/ctdbd_wrapper /run/ctdb/ctdbd.pid start 
type=SYSCALL msg=audit(09/13/2017 12:28:06.850:300) : arch=x86_64 syscall=setrlimit success=yes exit=0 a0=RLIMIT_NOFILE a1=0x7ffc38019a00 a2=0x2 a3=0x7f20881c9960 items=0 ppid=1 pid=10557 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ctdbd_wrapper exe=/usr/bin/bash subj=system_u:system_r:ctdbd_t:s0 key=(null) 
type=AVC msg=audit(09/13/2017 12:28:06.850:300) : avc:  denied  { setrlimit } for  pid=10557 comm=ctdbd_wrapper scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:system_r:ctdbd_t:s0 tclass=process 
type=AVC msg=audit(09/13/2017 12:28:06.850:300) : avc:  denied  { sys_resource } for  pid=10557 comm=ctdbd_wrapper capability=sys_resource  scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:system_r:ctdbd_t:s0 tclass=capability 
----

# rpm -qa selinux-policy\*
selinux-policy-targeted-3.13.1-166.el7.noarch
selinux-policy-3.13.1-166.el7.noarch
#

Comment 12 errata-xmlrpc 2018-04-10 12:43:43 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