Fedora Account System
Red Hat Associate
Red Hat Customer
+++ This bug was initially created as a clone of Bug #1289640 +++ Description of problem: Samba and CTDB has some SELinux issues when CTDB isnt managing Samba (I run it with Pacemaker). Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Setup CTDB and Samba with Pacemaker (I'll add the instructions for how to set it up) 2. pcs resource enable ctdb-clone 3. pcs resource samba-clone Actual results: SELinux errors regarding /etc/ctdb/event.d-scripts, /etc/ctdb/notify.sh and smbd fails to attach to ctdb secrets.tdb and to open /var/lib/samba/private/secrets.tdb Expected results: No issues Additional info: ausearch -m AVC in permissive mode: time->Tue Dec 8 14:59:33 2015 type=SYSCALL msg=audit(1449583173.698:6319): arch=c000003e syscall=4 success=yes exit=0 a0=8844a0 a1=7ffe6b54ee00 a2=7ffe6b54ee00 a3=7ffe6b54eb70 items=0 ppid=11324 pid=11325 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="00.ctdb" exe="/usr/bin/bash" subj=system_u:system_r:ctdbd_t:s0 key=(null) type=AVC msg=audit(1449583173.698:6319): avc: denied { dac_override } for pid=11325 comm="00.ctdb" capability=1 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:system_r:ctdbd_t:s0 tclass=capability ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.599:6322): arch=c000003e syscall=90 success=yes exit=0 a0=7f5db9cfd800 a1=180 a2=0 a3=9 items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.599:6322): avc: denied { setattr } for pid=11858 comm="smbd" name="secrets.tdb.0" dev="dm-0" ino=264377 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:ctdbd_var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.601:6323): arch=c000003e syscall=2 success=yes exit=5 a0=7f5db9cfd800 a1=2 a2=0 a3=7ffccdf39e00 items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.601:6323): avc: denied { open } for pid=11858 comm="smbd" path="/var/ctdb/persistent/secrets.tdb.0" dev="dm-0" ino=264377 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:ctdbd_var_t:s0 tclass=file type=AVC msg=audit(1449583201.601:6323): avc: denied { read write } for pid=11858 comm="smbd" name="secrets.tdb.0" dev="dm-0" ino=264377 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:ctdbd_var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.601:6324): arch=c000003e syscall=72 success=yes exit=0 a0=5 a1=7 a2=7ffccdf39ff0 a3=6e items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.601:6324): avc: denied { lock } for pid=11858 comm="smbd" path="/var/ctdb/persistent/secrets.tdb.0" dev="dm-0" ino=264377 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:ctdbd_var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.601:6325): arch=c000003e syscall=5 success=yes exit=0 a0=5 a1=7ffccdf3a0e0 a2=7ffccdf3a0e0 a3=7ffccdf39e00 items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.601:6325): avc: denied { getattr } for pid=11858 comm="smbd" path="/var/ctdb/persistent/secrets.tdb.0" dev="dm-0" ino=264377 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:ctdbd_var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.601:6326): arch=c000003e syscall=2 success=yes exit=21 a0=7fd289fdc880 a1=42 a2=180 a3=2 items=0 ppid=1 pid=9910 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ctdbd" exe="/usr/sbin/ctdbd" subj=system_u:system_r:ctdbd_t:s0 key=(null) type=AVC msg=audit(1449583201.601:6326): avc: denied { open } for pid=9910 comm="ctdbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file type=AVC msg=audit(1449583201.601:6326): avc: denied { read write } for pid=9910 comm="ctdbd" name="g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.602:6327): arch=c000003e syscall=72 success=yes exit=0 a0=15 a1=7 a2=7ffd11222090 a3=fffffffc items=0 ppid=1 pid=9910 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ctdbd" exe="/usr/sbin/ctdbd" subj=system_u:system_r:ctdbd_t:s0 key=(null) type=AVC msg=audit(1449583201.602:6327): avc: denied { lock } for pid=9910 comm="ctdbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.602:6328): arch=c000003e syscall=5 success=yes exit=0 a0=15 a1=7ffd11222180 a2=7ffd11222180 a3=0 items=0 ppid=1 pid=9910 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ctdbd" exe="/usr/sbin/ctdbd" subj=system_u:system_r:ctdbd_t:s0 key=(null) type=AVC msg=audit(1449583201.602:6328): avc: denied { getattr } for pid=9910 comm="ctdbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.605:6329): arch=c000003e syscall=90 success=yes exit=0 a0=7f5db9cff130 a1=180 a2=0 a3=8 items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.605:6329): avc: denied { setattr } for pid=11858 comm="smbd" name="g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.605:6330): arch=c000003e syscall=2 success=yes exit=9 a0=7f5db9cff130 a1=2 a2=0 a3=2 items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.605:6330): avc: denied { open } for pid=11858 comm="smbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file type=AVC msg=audit(1449583201.605:6330): avc: denied { read write } for pid=11858 comm="smbd" name="g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.605:6331): arch=c000003e syscall=72 success=yes exit=0 a0=9 a1=7 a2=7ffccdf39ec0 a3=6e items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.605:6331): avc: denied { lock } for pid=11858 comm="smbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:01 2015 type=SYSCALL msg=audit(1449583201.605:6332): arch=c000003e syscall=5 success=yes exit=0 a0=9 a1=7ffccdf39fb0 a2=7ffccdf39fb0 a3=ffffffff items=0 ppid=1 pid=11858 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1449583201.605:6332): avc: denied { getattr } for pid=11858 comm="smbd" path="/var/ctdb/g_lock.tdb.0" dev="dm-0" ino=77706912 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file ---- time->Tue Dec 8 15:00:04 2015 type=SYSCALL msg=audit(1449583204.394:6333): arch=c000003e syscall=4 success=yes exit=0 a0=16504a0 a1=7ffd9431e5b0 a2=7ffd9431e5b0 a3=7ffd9431e320 items=0 ppid=11930 pid=11933 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="00.ctdb" exe="/usr/bin/bash" subj=system_u:system_r:ctdbd_t:s0 key=(null) type=AVC msg=audit(1449583204.394:6333): avc: denied { dac_override } for pid=11933 comm="00.ctdb" capability=1 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:system_r:ctdbd_t:s0 tclass=capability
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.