Bug 1479759 - pcs resource create ocf:heartbeat:slapd causes avc: denied { block_suspend }
pcs resource create ocf:heartbeat:slapd causes avc: denied { block_suspend }
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
7.4
x86_64 Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Lukas Vrabec
Milos Malik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-09 06:57 EDT by Monika Muzikovska
Modified: 2017-08-30 09:50 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Monika Muzikovska 2017-08-09 06:57:53 EDT
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.

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