Bug 1374258 - SELinux is preventing python3 from 'create' accesses on the file 1.
Summary: SELinux is preventing python3 from 'create' accesses on the file 1.
Keywords:
Status: CLOSED DUPLICATE of bug 1345836
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:168ef74f02b6ba00c1cc4d65e26...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 11:03 UTC by Luís Silva
Modified: 2016-09-18 03:02 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-08 19:25:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1374030 0 unspecified CLOSED SELinux is preventing python from 'create' accesses on the file 1. 2021-02-22 00:41:40 UTC

Internal Links: 1374030

Description Luís Silva 2016-09-08 11:03:31 UTC
Description of problem:
SELinux is preventing python3 from 'create' accesses on the file 1.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that python3 should be allowed create access on the 1 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:
# ausearch -c 'python3' --raw | audit2allow -M my-python3
# semodule -X 300 -i my-python3.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:unconfined_t:s0
Target Objects                1 [ file ]
Source                        python3
Source Path                   python3
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.14.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.2-201.fc24.x86_64 #1 SMP Fri
                              Aug 26 15:58:40 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-09-08 12:00:02 WEST
Last Seen                     2016-09-08 12:00:34 WEST
Local ID                      ce484ece-03dd-4fae-b275-27b1ca306949

Raw Audit Messages
type=AVC msg=audit(1473332434.375:569): avc:  denied  { create } for  pid=1977 comm="python3" name="1" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0


Hash: python3,unconfined_t,unconfined_t,file,create

Version-Release number of selected component:
selinux-policy-3.13.1-191.14.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.2-201.fc24.x86_64
type:           libreport

Comment 1 Daniel Walsh 2016-09-08 19:25:21 UTC

*** This bug has been marked as a duplicate of bug 1345836 ***

Comment 2 Flo H. 2016-09-18 03:02:05 UTC
How do I know what the system describes as file 1? So, how to differentiate from similar bugs?


Note You need to log in before you can comment on or make changes to this bug.