Bug 866443 - SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file /etc/passwd.
Summary: SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file ...
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:1ef9877a99034cd7268851faaff...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-15 11:36 UTC by distro.ru
Modified: 2012-12-20 15:07 UTC (History)
3 users (show)

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


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

Description distro.ru 2012-10-15 11:36:15 UTC
Description of problem:
try to install additional drivers, only opne the application that this alarm in shown.
i make all 
sudo grep jockey-backend /var/log/audit/audit.log | audit2allow -M mypol
[sudo] password for luigi: 
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i mypol.pp

luigi@BlackFlag ~$ sudo semodule -i mypol.pp

than nothing


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

description:
:SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If si crede che python2.7 dovrebbe avere possibilità di accesso getattr sui passwd file in modo predefinito.
:Then si dovrebbe riportare il problema come bug.
:E' possibile generare un modulo di politica locale per consentire questo accesso.
:Do
:consentire questo accesso per il momento eseguendo:
:# grep jockey-backend /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:jockey_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:passwd_file_t:s0
:Target Objects                /etc/passwd [ file ]
:Source                        jockey-backend
:Source Path                   /usr/bin/python2.7
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-7.2.fc17.x86_64
:Target RPM Packages           setup-2.8.48-1.fc17.noarch
:Policy RPM                    selinux-policy-3.10.0-153.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.6-1.fc17.x86_64 #1 SMP Sun Oct
:                              7 19:31:14 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-15 15:31:38 MSK
:Last Seen                     2012-10-15 15:31:38 MSK
:Local ID                      56e85b03-d399-4f57-b5f5-3e6744864b2b
:
:Raw Audit Messages
:type=AVC msg=audit(1350300698.154:83): avc:  denied  { getattr } for  pid=2670 comm="jockey-backend" path="/etc/passwd" dev="sda5" ino=28075 scontext=system_u:system_r:jockey_t:s0-s0:c0.c1023 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1350300698.154:83): arch=x86_64 syscall=fstat success=yes exit=0 a0=4 a1=7fff59c9f300 a2=7fff59c9f300 a3=0 items=0 ppid=2669 pid=2670 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=jockey-backend exe=/usr/bin/python2.7 subj=system_u:system_r:jockey_t:s0-s0:c0.c1023 key=(null)
:
:Hash: jockey-backend,jockey_t,passwd_file_t,file,getattr
:
:audit2allow
:
:#============= jockey_t ==============
:allow jockey_t passwd_file_t:file getattr;
:
:audit2allow -R
:
:#============= jockey_t ==============
:allow jockey_t passwd_file_t:file getattr;
:

Comment 1 distro.ru 2012-10-15 11:36:21 UTC
Created attachment 627353 [details]
File: type

Comment 2 distro.ru 2012-10-15 11:36:24 UTC
Created attachment 627354 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-16 11:32:05 UTC
Added to F17, F18.

Comment 4 Fedora Update System 2012-10-17 12:36:39 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 5 Fedora Update System 2012-10-18 00:28:04 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 6 Fedora Update System 2012-12-20 15:07:43 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.