| Summary: | SELinux is preventing python from 'create' accesses on the file strings.pyc. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | shademage |
| 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: | 23 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:17d85f0974c21f98affb8e7ae86103ebfc31e9b4f6d398baa5402725c3b80b9b;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-21 12:52:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 982203 *** |
Description of problem: SELinux is preventing python from 'create' accesses on the file strings.pyc. ***** Plugin catchall_labels (83.8 confidence) suggests ******************* If you want to allow python to have create access on the strings.pyc file Then you need to change the label on strings.pyc Do # semanage fcontext -a -t FILE_TYPE 'strings.pyc' where FILE_TYPE is one of the following: bin_t, cupsd_interface_t, cupsd_lock_t, cupsd_log_t, cupsd_rw_etc_t, cupsd_tmp_t, cupsd_var_lib_t, cupsd_var_run_t, krb5_host_rcache_t, print_spool_t, snmpd_var_lib_t, user_home_t. Then execute: restorecon -v 'strings.pyc' ***** Plugin catchall (17.1 confidence) suggests ************************** If you believe that python should be allowed create access on the strings.pyc 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 python /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:cupsd_t:s0-s0:c0.c1023 Target Context system_u:object_r:usr_t:s0 Target Objects strings.pyc [ file ] Source python Source Path python Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-158.9.fc23.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.4.4-301.fc23.x86_64 #1 SMP Fri Mar 4 17:42:42 UTC 2016 x86_64 x86_64 Alert Count 22 First Seen 2016-03-13 01:53:24 EST Last Seen 2016-03-13 01:53:24 EST Local ID bd78857f-9960-4feb-bed9-7d85f7d7bc78 Raw Audit Messages type=AVC msg=audit(1457852004.546:1367): avc: denied { create } for pid=21433 comm="python" name="strings.pyc" scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=0 Hash: python,cupsd_t,usr_t,file,create Version-Release number of selected component: selinux-policy-3.13.1-158.9.fc23.noarch Additional info: reporter: libreport-2.6.4 hashmarkername: setroubleshoot kernel: 4.4.5-300.fc23.x86_64 type: libreport Potential duplicate: bug 982203