| Summary: | SELinux is preventing /usr/sbin/abrt-server from 'write' accesses on the sock_file socket. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | NM <andrew.kavalov> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | cknapp, D8F55524, dan, dominick.grift, dwalsh, Irwin.Sobel, jam, lvrabec, mgrepl, nathaniel.sfcw.davis, phaleintx, smitna, stephen.hindmarch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:3bc9f19bc1e93d0efad61f5dab7bc7373265e833c34975357d9b2ea72140f28d | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-05 23:15:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
We allow this in F21. Description of problem: Happened at system boot Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.7-100.fc18.x86_64 type: libreport Description of problem: Started happening right after a recent update. Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.7-100.fc18.i686.PAE type: libreport Description of problem: This SELinux alert appears every time abrt reports an incident. This seems to be a regression: I never had this message before. Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.7-100.fc18.x86_64 type: libreport Description of problem: I think something else was causing an issue but when ABRT tried to report the problem it was blocked by this. Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.7-100.fc18.x86_64.debug type: libreport Additionally the workaround suggested by selinux troubleshooter fails. grep abrt-server /var/log/audit/audit.log | audit2allow -M abrt semodule -i abrt.pp libsepol.print_missing_requirements: abrt's global requirements were not met: type/attribute abrt_t (No such file or directory). libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory). semodule: Failed! You can not use the name of an existing policy file. # grep abrt-server /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Is the suggestion. grep abrt-server /var/log/audit/audit.log | audit2allow -M myabrt semodule -i myabrt.pp Would also work. I understand. Yes, that suggestion works. This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
Description of problem: SELinux is preventing /usr/sbin/abrt-server from 'write' accesses on the sock_file socket. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that abrt-server should be allowed write access on the socket sock_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 abrt-server /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:abrt_t:s0-s0:c0.c1023 Target Context system_u:object_r:syslogd_var_run_t:s0 Target Objects socket [ sock_file ] Source abrt-server Source Path /usr/sbin/abrt-server Port <Unknown> Host (removed) Source RPM Packages abrt-2.1.9-1.fc18.x86_64 Target RPM Packages Policy RPM selinux-policy-3.11.1-106.fc18.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.11.7-100.fc18.x86_64 #1 SMP Mon Nov 4 15:09:31 UTC 2013 x86_64 x86_64 Alert Count 120 First Seen 2013-11-16 21:58:27 EST Last Seen 2013-11-16 21:59:02 EST Local ID 2a76cc3b-fe22-4f91-97fe-0eddbee9db16 Raw Audit Messages type=AVC msg=audit(1384657142.52:31450): avc: denied { write } for pid=15329 comm="abrt-server" name="socket" dev="tmpfs" ino=9321 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:syslogd_var_run_t:s0 tclass=sock_file type=SYSCALL msg=audit(1384657142.52:31450): arch=x86_64 syscall=sendmsg success=no exit=EACCES a0=4 a1=7fff8f2d95f0 a2=4000 a3=19 items=0 ppid=916 pid=15329 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=abrt-server exe=/usr/sbin/abrt-server subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null) Hash: abrt-server,abrt_t,syslogd_var_run_t,sock_file,write audit2allow #============= abrt_t ============== allow abrt_t syslogd_var_run_t:sock_file write; audit2allow -R require { type abrt_t; } #============= abrt_t ============== logging_stream_connect_syslog(abrt_t) Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.7-100.fc18.x86_64 type: libreport