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 1479759

Summary: pcs resource create ocf:heartbeat:slapd causes avc: denied { block_suspend }
Product: Red Hat Enterprise Linux 7 Reporter: Monika Muzikovska <mmuzikov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-177.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 12:36:40 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:

Description Monika Muzikovska 2017-08-09 10:57:53 UTC
Description of problem:
Attempt to create slapd resource in cluster causes avc:  denied  { block_suspend }.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-166.el7.noarch
openldap-servers-2.4.44-5.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. pcs resource create p_slapd ocf:heartbeat:slapd
2. ausearch -m AVC

Actual results:
time->Wed Aug  9 12:25:30 2017
type=PROCTITLE msg=audit(1502274330.788:3379): proctitle=2F7573722F7362696E2F736C617064002D68006C6461703A2F2F2F002D7500726F6F74002D6700726F6F74002D46002F6574632F6F70656E6C6461702F736C6170642E64
type=SYSCALL msg=audit(1502274330.788:3379): arch=c000003e syscall=233 success=yes exit=0 a0=6 a1=2 a2=a a3=5582afa41334 items=0 ppid=1 pid=3927 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="slapd" exe="/usr/sbin/slapd" subj=system_u:system_r:slapd_t:s0 key=(null)
type=AVC msg=audit(1502274330.788:3379): avc:  denied  { block_suspend } for  pid=3927 comm="slapd" capability=36  scontext=system_u:system_r:slapd_t:s0 tcontext=system_u:system_r:slapd_t:s0 tclass=capability2
----
time->Wed Aug  9 12:25:35 2017
type=PROCTITLE msg=audit(1502274335.267:3380): proctitle=2F7573722F7362696E2F736C617064002D68006C6461703A2F2F2F002D7500726F6F74002D6700726F6F74002D46002F6574632F6F70656E6C6461702F736C6170642E64
type=SYSCALL msg=audit(1502274335.267:3380): arch=c000003e syscall=233 success=yes exit=0 a0=6 a1=2 a2=a a3=5582afa41334 items=0 ppid=1 pid=3927 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="slapd" exe="/usr/sbin/slapd" subj=system_u:system_r:slapd_t:s0 key=(null)
type=AVC msg=audit(1502274335.267:3380): avc:  denied  { block_suspend } for  pid=3927 comm="slapd" capability=36  scontext=system_u:system_r:slapd_t:s0 tcontext=system_u:system_r:slapd_t:s0 tclass=capability2

Expected results:
No denials

Additional info:
This error is related only to slapd resource in cluster. Attempt to start slapd service without cluster doesn't cause denial error. After fix is available, we can perform its testing in cluster.

Comment 2 Lukas Vrabec 2017-10-12 12:17:57 UTC
We're going to close this bug as WONTFIX because

 * of limited capacity of selinux-policy developers
 * the bug is related to EPEL component or 3rd party SW only
 * the bug appears in unsupported configuration 

We believe this bug can be fixed via a local policy module.
For more information please see: 

 * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-security-enhanced_linux-troubleshooting-fixing_problems#sect-Security-Enhanced_Linux-Fixing_Problems-Allowing_Access_audit2allow

If you disagree, please re-open the bug.

Comment 3 Lukas Vrabec 2017-10-12 12:21:09 UTC
We're going to close this bug as WONTFIX because

 * of limited capacity of selinux-policy developers
 * the bug is related to EPEL component or 3rd party SW only
 * the bug appears in unsupported configuration 

We believe this bug can be fixed via a local policy module.
For more information please see: 

 * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-security-enhanced_linux-troubleshooting-fixing_problems#sect-Security-Enhanced_Linux-Fixing_Problems-Allowing_Access_audit2allow

If you disagree, please re-open the bug.

Comment 4 Jaroslav Kortus 2017-10-13 14:32:03 UTC
(In reply to Lukas Vrabec from comment #2)
> We're going to close this bug as WONTFIX because
> 
>  * of limited capacity of selinux-policy developers

hm...

>  * the bug is related to EPEL component or 3rd party SW only

what EPEL component are you refering to?

>  * the bug appears in unsupported configuration 

how is that configuration unsupported?

> If you disagree, please re-open the bug.

I disagree, hence reopening the bug.

The configuration is standard clustered configuration of slapd daemon. Cluster components (pcs, pacemaker and others) are part of High Availability addon (hence part of RHEL). Configuration is done via standard resource agents so perfectly valid as far as I can tell.

We do support selinux on all cluster resources to my knowledge. If that has changed in any way, please point me to relevant discussion where this has been decided.

Thank you,

--
Jaroslav.

Comment 5 Milos Malik 2017-10-13 14:42:12 UTC
Please disregard comment#2 and comment#3.

Wrong keyword was used in the Devel whiteboard -> mass BZ switch got a wrong list of BZs.

Comment 11 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