Bug 1126089
| Summary: | SELinux is preventing /usr/bin/abrt-dump-journal-oops from 'write' accesses on the file /var/lib/abrt/abrt-dump-journal-oops.state. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | lejeczek <peljasz> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:b1198c8e7145b2fbfd4217fb047f87e9e25d0663650cbdfcf1a1505c029b7d07 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-08-04 06:44:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1126037 *** |
Description of problem: SELinux is preventing /usr/bin/abrt-dump-journal-oops from 'write' accesses on the file /var/lib/abrt/abrt-dump-journal-oops.state. ***** Plugin catchall_labels (83.8 confidence) suggests ******************* If you want to allow abrt-dump-journal-oops to have write access on the abrt-dump-journal-oops.state file Then you need to change the label on /var/lib/abrt/abrt-dump-journal-oops.state Do # semanage fcontext -a -t FILE_TYPE '/var/lib/abrt/abrt-dump-journal-oops.state' where FILE_TYPE is one of the following: abrt_var_cache_t, afs_cache_t, initrc_tmp_t, puppet_tmp_t, user_cron_spool_t, user_tmp_t. Then execute: restorecon -v '/var/lib/abrt/abrt-dump-journal-oops.state' ***** Plugin catchall (17.1 confidence) suggests ************************** If you believe that abrt-dump-journal-oops should be allowed write access on the abrt-dump-journal-oops.state 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-dump-journ /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:abrt_dump_oops_t:s0 Target Context system_u:object_r:var_lib_t:s0 Target Objects /var/lib/abrt/abrt-dump-journal-oops.state [ file ] Source abrt-dump-journ Source Path /usr/bin/abrt-dump-journal-oops Port <Unknown> Host (removed) Source RPM Packages abrt-addon-kerneloops-2.2.2-4.fc22.x86_64 Target RPM Packages Policy RPM selinux-policy-3.13.1-68.fc22.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.16.0-0.rc7.git3.1.fc22.x86_64 #1 SMP Thu Jul 31 15:06:26 UTC 2014 x86_64 x86_64 Alert Count 1 First Seen 2014-08-01 21:38:17 BST Last Seen 2014-08-01 21:38:17 BST Local ID fb9d82dc-c648-4072-be2b-c1799e030e6b Raw Audit Messages type=AVC msg=audit(1406925497.382:498): avc: denied { write } for pid=734 comm="abrt-dump-journ" name="abrt-dump-journal-oops.state" dev="dm-1" ino=2626888 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=0 type=SYSCALL msg=audit(1406925497.382:498): arch=x86_64 syscall=open success=no exit=EACCES a0=7f2bfad540c8 a1=20241 a2=180 a3=396666343d743b61 items=0 ppid=1 pid=734 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-dump-journ exe=/usr/bin/abrt-dump-journal-oops subj=system_u:system_r:abrt_dump_oops_t:s0 key=(null) Hash: abrt-dump-journ,abrt_dump_oops_t,var_lib_t,file,write Version-Release number of selected component: selinux-policy-3.13.1-68.fc22.noarch Additional info: reporter: libreport-2.2.3 hashmarkername: setroubleshoot kernel: 3.16.0-0.rc7.git3.1.fc22.x86_64 type: libreport