Hide Forgot
Description of problem: Just installed apcupsd to use for my APC SU620NET SELinux is preventing apcupsd from 'read' accesses on the file apcupsd.events. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that apcupsd should be allowed read access on the apcupsd.events file 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: # grep apcupsd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:apcupsd_t:s0 Target Context unconfined_u:object_r:var_log_t:s0 Target Objects apcupsd.events [ file ] Source apcupsd Source Path apcupsd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-158.11.fc23.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.4.6-300.fc23.x86_64 #1 SMP Wed Mar 16 22:10:37 UTC 2016 x86_64 x86_64 Alert Count 3 First Seen 2016-03-27 18:55:45 EEST Last Seen 2016-03-27 19:01:02 EEST Local ID 6c0d336a-554d-42d1-a50d-8fe366a597f5 Raw Audit Messages type=AVC msg=audit(1459094462.80:536): avc: denied { read } for pid=8572 comm="apcupsd" name="apcupsd.events" dev="dm-1" ino=1058432 scontext=system_u:system_r:apcupsd_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file permissive=1 Hash: apcupsd,apcupsd_t,var_log_t,file,read Version-Release number of selected component: selinux-policy-3.13.1-158.11.fc23.noarch Additional info: reporter: libreport-2.6.4 hashmarkername: setroubleshoot kernel: 4.4.6-300.fc23.x86_64 type: libreport
apcupsd.events should have apcupsd_log_t context. How you start this daemon? Could you run: #restorecon -Rv /var/log/apcupsd/ Could you reproduce this issue again? Thank you.
I think I can not reproduce as of recent installation of Fedora 25