Bug 866604 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /usr/bin/python2.7.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:52905cb3a76c796f7e30de9b487...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-15 17:36 UTC by Gevorg
Modified: 2012-12-20 15:15 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:15:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-15 17:36 UTC, Gevorg
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-15 17:36 UTC, Gevorg
no flags Details

Description Gevorg 2012-10-15 17:36:48 UTC
Description of problem:
I was trying to add a new printer.

Additional info:
libreport version: 2.0.14
kernel:         3.6.1-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /usr/bin/python2.7.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed read access on the python2.7 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 hpfax /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:hplip_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:bin_t:s0
:Target Objects                /usr/bin/python2.7 [ file ]
:Source                        hpfax
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-7.2.fc17.x86_64
:Target RPM Packages           python-2.7.3-7.2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-153.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.1-1.fc17.x86_64 #1 SMP Wed Oct
:                              10 12:13:05 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-10-15 13:33:41 EDT
:Last Seen                     2012-10-15 13:34:36 EDT
:Local ID                      60a8b1a7-5fb6-43c5-b9f3-3812da12b959
:
:Raw Audit Messages
:type=AVC msg=audit(1350322476.442:89): avc:  denied  { read } for  pid=1423 comm="hpfax" path="/usr/bin/python2.7" dev="sda2" ino=140046 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1350322476.442:89): arch=x86_64 syscall=mprotect success=no exit=EACCES a0=600000 a1=1000 a2=1 a3=7fffd8776140 items=0 ppid=1416 pid=1423 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=hpfax exe=/usr/bin/python2.7 subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)
:
:Hash: hpfax,hplip_t,bin_t,file,read
:
:audit2allow
:
:#============= hplip_t ==============
:allow hplip_t bin_t:file read;
:
:audit2allow -R
:
:#============= hplip_t ==============
:allow hplip_t bin_t:file read;
:

Comment 1 Gevorg 2012-10-15 17:36:50 UTC
Created attachment 627570 [details]
File: type

Comment 2 Gevorg 2012-10-15 17:36:52 UTC
Created attachment 627571 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-16 11:45:58 UTC
It has been added.

Comment 4 piplyes 2012-10-17 05:28:31 UTC
SELinux

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 5 Fedora Update System 2012-10-17 12:36:47 UTC
selinux-policy-3.10.0-156.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-156.fc17

Comment 6 Andrea Dell'Amico 2012-10-17 14:05:02 UTC
The alert was raised while the system was installing the driver for a new printer.

Package: (null)
Architecture: i686
OS Release: Fedora release 17 (Beefy Miracle)

Comment 7 Ondrej Majerech 2012-10-17 18:39:23 UTC
Plugged in my HP LaserJet printer, the Configuring Printer notification popped up along with the SELinux Denial notification.

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 8 Fedora Update System 2012-10-18 00:28:12 UTC
Package selinux-policy-3.10.0-156.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-156.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16347/selinux-policy-3.10.0-156.fc17
then log in and leave karma (feedback).

Comment 9 RichPitts 2012-10-18 07:49:43 UTC
Resume from sleep, problem with internet connection, once resummed this message came uo

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 10 Michal Nowak 2012-10-18 17:19:03 UTC
Turned scanner on and executed xsane.

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 11 Juan Orti 2012-10-18 17:59:43 UTC
I connected a new HP printer

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 12 Richard Henderson 2012-10-20 22:38:29 UTC
Plugged in a usb printer.

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 13 Fedora Update System 2012-12-20 15:15:54 UTC
selinux-policy-3.10.0-156.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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