Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: (Re)started cyrus-imapd. SELinux is preventing master from using the 'dac_override' capabilities. ***** Plugin dac_override (91.4 confidence) suggests ********************** If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system Then turn on full auditing to get path information about the offending file and generate the error again. Do Turn on full auditing # auditctl -w /etc/shadow -p w Try to recreate AVC. Then execute # ausearch -m avc -ts recent If you see PATH record check ownership/permissions on file, and fix it, otherwise report as a bugzilla. ***** Plugin catchall (9.59 confidence) suggests ************************** If you believe that master should have the dac_override capability by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'master' --raw | audit2allow -M my-master # semodule -X 300 -i my-master.pp Additional Information: Source Context system_u:system_r:cyrus_t:s0 Target Context system_u:system_r:cyrus_t:s0 Target Objects Unknown [ capability ] Source master Source Path master Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.1-29.fc28.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.16.11-300.fc28.x86_64 #1 SMP Tue May 22 18:29:09 UTC 2018 x86_64 x86_64 Alert Count 1 First Seen 2018-05-27 18:44:17 CEST Last Seen 2018-05-27 18:44:17 CEST Local ID 3dfd738e-fe03-4f0b-9e4c-42827e34260c Raw Audit Messages type=AVC msg=audit(1527439457.868:21452): avc: denied { dac_override } for pid=26728 comm="master" capability=1 scontext=system_u:system_r:cyrus_t:s0 tcontext=system_u:system_r:cyrus_t:s0 tclass=capability permissive=0 Hash: master,cyrus_t,cyrus_t,capability,dac_override Version-Release number of selected component: selinux-policy-3.14.1-29.fc28.noarch Additional info: component: selinux-policy reporter: libreport-2.9.5 hashmarkername: setroubleshoot kernel: 4.16.11-300.fc28.x86_64 type: libreport
Hmm, there was even more than this and bug #1582885. After a couple of iterations, here's the local module I used to silence starts and restarts of cyrus-imapd: module local-cyrus-imapd 1.1; require { type cyrus_t; type init_t; type cyrus_var_run_t; class capability dac_override; class file { map open read }; class dir create; } #============= cyrus_t ============== allow cyrus_t cyrus_var_run_t:dir create; #!!!! This avc is allowed in the current policy allow cyrus_t cyrus_var_run_t:file map; #!!!! This avc is allowed in the current policy allow cyrus_t init_t:file { open read }; #!!!! This avc is allowed in the current policy allow cyrus_t self:capability dac_override;
selinux-policy-3.14.1-32.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-743a9247de
selinux-policy-3.14.1-32.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.