Bug 1209244
| Summary: | SELinux is preventing /usr/bin/abrt-action-save-package-data from 'write' accesses on the file /var/lib/rpm/Sigmd5. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | edo <edosurina> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | dominick.grift, dwalsh, edosurina, lvrabec, mgrepl, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:53b69c22b90dfec56a10860d72a15336c0bd135bd2be140760c745f80e100ee3 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-05-11 12:31:03 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: | |||
You have mislabeled /var/lib/rpm for a reason. If you execute # restorecon -R -v /var/lib/rpm it will fix it. Could you reopen the bug if you get it again? Thank you. Ofcourse. OK. |
Description of problem: SELinux is preventing /usr/bin/abrt-action-save-package-data from 'write' accesses on the file /var/lib/rpm/Sigmd5. ***** Plugin restorecon (94.8 confidence) suggests ************************ If you want to fix the label. /var/lib/rpm/Sigmd5 default label should be rpm_var_lib_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/lib/rpm/Sigmd5 ***** Plugin catchall_labels (5.21 confidence) suggests ******************* If you want to allow abrt-action-save-package-data to have write access on the Sigmd5 file Then you need to change the label on /var/lib/rpm/Sigmd5 Do # semanage fcontext -a -t FILE_TYPE '/var/lib/rpm/Sigmd5' where FILE_TYPE is one of the following: abrt_etc_t, abrt_tmp_t, abrt_upload_watch_tmp_t, abrt_var_cache_t, abrt_var_log_t, abrt_var_run_t, afs_cache_t, initrc_tmp_t, mock_var_lib_t, postfix_postdrop_t, puppet_tmp_t, rpm_log_t, rpm_var_cache_t, rpm_var_run_t, sysfs_t, user_cron_spool_t, user_tmp_t. Then execute: restorecon -v '/var/lib/rpm/Sigmd5' ***** Plugin catchall (1.44 confidence) suggests ************************** If you believe that abrt-action-save-package-data should be allowed write access on the Sigmd5 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-action-sav /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 unconfined_u:object_r:var_lib_t:s0 Target Objects /var/lib/rpm/Sigmd5 [ file ] Source abrt-action-sav Source Path /usr/bin/abrt-action-save-package-data Port <Unknown> Host (removed) Source RPM Packages abrt-2.3.0-4.fc21.x86_64 Target RPM Packages rpm-4.12.0.1-5.fc21.x86_64 Policy RPM selinux-policy-3.13.1-105.11.fc21.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 3.19.3-200.fc21.x86_64 #1 SMP Thu Mar 26 21:39:42 UTC 2015 x86_64 x86_64 Alert Count 1 First Seen 2015-04-06 21:43:52 CEST Last Seen 2015-04-06 21:43:52 CEST Local ID 7dacb8b1-2119-4da6-9782-cb3d5544f680 Raw Audit Messages type=AVC msg=audit(1428349432.820:463): avc: denied { write } for pid=3316 comm="abrt-action-sav" name="Sigmd5" dev="dm-0" ino=541822 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file permissive=1 type=SYSCALL msg=audit(1428349432.820:463): arch=x86_64 syscall=open success=yes exit=EBADF a0=7f0929d20570 a1=2 a2=0 a3=21 items=0 ppid=3248 pid=3316 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-action-sav exe=/usr/bin/abrt-action-save-package-data subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null) Hash: abrt-action-sav,abrt_t,var_lib_t,file,write Version-Release number of selected component: selinux-policy-3.13.1-105.11.fc21.noarch Additional info: reporter: libreport-2.3.0 hashmarkername: setroubleshoot kernel: 3.19.3-200.fc21.x86_64 type: libreport