Bug 1649223 - SELinux is preventing python3 from 'read' accesses on the directory site-packages.
Summary: SELinux is preventing python3 from 'read' accesses on the directory site-pack...
Keywords:
Status: CLOSED DUPLICATE of bug 1529837
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:714056a9a1c20864b88817dfb1f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-13 07:57 UTC by zimon
Modified: 2018-12-17 18:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-17 18:31:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description zimon 2018-11-13 07:57:01 UTC
Description of problem:
I do not exactly know, but maybe when trying to send files from already paired another bluetooth device to the Linux PC and it always failed.
See
https://forums.fedoraforum.org/showthread.php?276064-Bluetooth-can-t-receive-files&p=1815207#post1815207

After doing suggested:
# ausearch -c 'python3' --raw | audit2allow -M my-python3
# semodule -X 300 -i my-python3.pp

...and machine had been rebooted once, Bluetooth file transfer from phone to PC works now.
SELinux is preventing python3 from 'read' accesses on the directory site-packages.

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

If you believe that python3 should be allowed read access on the site-packages directory 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                system_u:system_r:blueman_t:s0
Target Context                unconfined_u:object_r:gconf_home_t:s0
Target Objects                site-packages [ dir ]
Source                        python3
Source Path                   python3
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-47.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.16-200.fc28.x86_64 #1 SMP Sat
                              Oct 20 23:53:47 UTC 2018 x86_64 x86_64
Alert Count                   8
First Seen                    2018-11-08 11:02:02 EET
Last Seen                     2018-11-13 09:30:10 EET
Local ID                      a374506a-903c-4e6d-bdbb-86a62d97f595

Raw Audit Messages
type=AVC msg=audit(1542094210.221:253): avc:  denied  { read } for  pid=2644 comm="python3" name="site-packages" dev="dm-1" ino=1708435 scontext=system_u:system_r:blueman_t:s0 tcontext=unconfined_u:object_r:gconf_home_t:s0 tclass=dir permissive=0


Hash: python3,blueman_t,gconf_home_t,dir,read

Version-Release number of selected component:
selinux-policy-3.14.1-47.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.16-200.fc28.x86_64
type:           libreport

Potential duplicate: bug 1529837

Comment 1 Lukas Vrabec 2018-12-17 18:31:35 UTC

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


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