Bug 1200626 - SELinux is preventing udev-add-printe from 'write' accesses on the directory /usr/lib/python3.4/site-packages/urllib3/packages/__pycache__.
Summary: SELinux is preventing udev-add-printe from 'write' accesses on the directory ...
Keywords:
Status: CLOSED DUPLICATE of bug 1200319
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:36133b04c8e99ef742d49827b98...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-11 02:55 UTC by Onyeibo Oku
Modified: 2015-03-11 15:24 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-11 15:24:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Onyeibo Oku 2015-03-11 02:55:31 UTC
Description of problem:
Install hplip-gui
connect HP LASERJET 2010
start hplip-gui to configure printer
*selinux-blocks-the-process*
SELinux is preventing udev-add-printe from 'write' accesses on the directory /usr/lib/python3.4/site-packages/urllib3/packages/__pycache__.

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

If you believe that udev-add-printe should be allowed write access on the __pycache__ 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:
# grep udev-add-printe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:cupsd_config_t:s0
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/python3.4/site-
                              packages/urllib3/packages/__pycache__ [ dir ]
Source                        udev-add-printe
Source Path                   udev-add-printe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           python3-urllib3-1.10-2.fc22.noarch
Policy RPM                    selinux-policy-3.13.1-116.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-0.rc2.git0.1.fc22.x86_64 #1
                              SMP Tue Mar 3 21:24:17 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-03-11 03:50:18 WAT
Last Seen                     2015-03-11 03:50:18 WAT
Local ID                      309573cd-f4fb-4bc8-9f42-76b59acf95c8

Raw Audit Messages
type=AVC msg=audit(1426042218.613:670): avc:  denied  { write } for  pid=5489 comm="udev-add-printe" name="__pycache__" dev="dm-0" ino=2490742 scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=dir permissive=0


Hash: udev-add-printe,cupsd_config_t,lib_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-116.fc22.noarch

Additional info:
reporter:       libreport-2.4.0
hashmarkername: setroubleshoot
kernel:         4.0.0-0.rc2.git0.1.fc22.x86_64
type:           libreport

Potential duplicate: bug 1200319

Comment 1 Lukas Vrabec 2015-03-11 15:24:01 UTC

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


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