Bug 1200319 - 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 1196183
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 21
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:36133b04c8e99ef742d49827b98...
: 1200626 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-10 10:01 UTC by Mikhail
Modified: 2015-03-11 15:24 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-10 10:46:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2015-03-10 10:01:21 UTC
Description of problem:
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.fc21.noarch
Policy RPM                    selinux-policy-3.13.1-105.6.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.18.8-201.fc21.i686+PAE #1 SMP
                              Fri Feb 27 18:35:02 UTC 2015 i686 i686
Alert Count                   1
First Seen                    2015-03-10 14:59:18 YEKT
Last Seen                     2015-03-10 14:59:18 YEKT
Local ID                      16742e52-3140-4fc0-ad97-24910189512f

Raw Audit Messages
type=AVC msg=audit(1425981558.721:705): avc:  denied  { write } for  pid=9129 comm="udev-add-printe" name="__pycache__" dev="sda1" ino=2244036 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-105.6.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.8-201.fc21.i686+PAE
type:           libreport

Comment 1 Mikhail 2015-03-10 10:05:50 UTC
Description of problem:
occurs when pluged USB printer

Version-Release number of selected component:
selinux-policy-3.13.1-105.6.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.8-201.fc21.i686+PAE
type:           libreport

Comment 2 Lukas Vrabec 2015-03-10 10:13:19 UTC
This is issue in cups package

Comment 3 Tim Waugh 2015-03-10 10:46:27 UTC
Actually it's system-config-printer.

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

Comment 4 Lukas Vrabec 2015-03-11 15:24:01 UTC
*** Bug 1200626 has been marked as a duplicate of this bug. ***


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