Description of problem: Was trying again to set up my APC UPS with MODBUS on TTYs01 SELinux is preventing wall 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 wall 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 'wall' --raw | audit2allow -M my-wall # semodule -X 300 -i my-wall.pp Additional Information: Source Context system_u:system_r:apcupsd_t:s0 Target Context system_u:system_r:apcupsd_t:s0 Target Objects Unknown [ capability ] Source wall Source Path wall Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.3-39.fc30.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.1.12-300.fc30.x86_64 #1 SMP Wed Jun 19 15:19:49 UTC 2019 x86_64 x86_64 Alert Count 1 First Seen 2019-06-28 19:14:02 EEST Last Seen 2019-06-28 19:14:02 EEST Local ID 7d9425e9-13d3-4939-b133-31344b953528 Raw Audit Messages type=AVC msg=audit(1561738442.719:472): avc: denied { dac_override } for pid=6231 comm="wall" capability=1 scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:apcupsd_t:s0 tclass=capability permissive=0 Hash: wall,apcupsd_t,apcupsd_t,capability,dac_override Version-Release number of selected component: selinux-policy-3.14.3-39.fc30.noarch Additional info: component: selinux-policy reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.1.12-300.fc30.x86_64 type: libreport Potential duplicate: bug 1636348
*** This bug has been marked as a duplicate of bug 1645747 ***