| Summary: | SELinux is preventing apcupsd from 'read' accesses on the file apcupsd.events. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | hx |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 23 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:7695d7332d54bd6d4699b3dedc812e681fe0c0cb338dfec94557c5f41fcbdd72;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-23 10:35:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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