Description of problem: Following denial for cephtest seen during rbd testing SELinux denials found on ubuntu.redhat.com: ['type=AVC msg=audit(1452669001.796:15051): avc: denied { search } for pid=2143 comm=72733A6D61696E20513A526567 name="cephtest" dev="sda1" ino=1310802 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir'] Version-Release number of selected component (if applicable): 1.3.2/0.94.5 How reproducible: Intermittent Steps to Reproduce: This is seen intermittently during rbd iozone testing with selinux in permissive mode Actual results: http://pulpito.ceph.redhat.com/vasu-2016-01-12_23:52:10-smoke:basic-v0.94.5---basic-clara/210811/ Expected results: Additional info: http://magna002.ceph.redhat.com/vasu-2016-01-12_23:52:10-smoke:basic-v0.94.5---basic-clara/210811/remote/clara003/audit/
This is not a ceph bug but a teuthology one-- teuthology creates files in home directory (syslogd file in this case) so they end up being labelled user_home_t. A process (suslogd) with syslogd_t context cannot access (search -- list directory in this case) files with user_home_t context by default. AFAICR, there should have already been some changes regarding this in teuthology. However, I'm not sure what version of teuthology was used in this case/whether it contains the patches or not. In the mean-time closing as NOTABUG. See upstream teuthology bug for details: http://tracker.ceph.com/issues/12972 FWIW: I can give you some tips so that you can maintain a custom teuthology SELinux policy that would help avoid denials like these that are not dedicated to ceph itself but to the test framework.