Bug 798069 - SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/cache/jockey/check.
Summary: SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /va...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0554f8f341a59c416a467afb1e1...
: 787760 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-28 00:22 UTC by kumar kushal
Modified: 2012-04-22 03:36 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-84.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-22 03:36:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description kumar kushal 2012-02-28 00:22:39 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.5-6.fc16.i686
reason:         SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/cache/jockey/check.
time:           Mon Feb 27 18:22:17 2012

description:
:SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/cache/jockey/check.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed getattr access on the check <Unknown> 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 jockey-backend /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:var_t:s0
:Target Objects                /var/cache/jockey/check [ None ]
:Source                        jockey-backend
:Source Path                   /usr/bin/python
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.2-5.2.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.5-6.fc16.i686 #1 SMP Thu Dec 15
:                              16:26:31 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Mon 27 Feb 2012 06:19:31 PM CST
:Last Seen                     Mon 27 Feb 2012 06:19:31 PM CST
:Local ID                      33c335dc-387a-4d9f-abff-6babbc36ae64
:
:Raw Audit Messages
:type=AVC msg=audit(1330388371.337:63): avc:  denied  { getattr } for  pid=1544 comm="jockey-backend" path="/var/cache/jockey/check" dev=dm-1 ino=926491 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1330388371.337:63): arch=40000003 syscall=197 success=yes exit=0 a0=8 a1=bfe45290 a2=4278dff4 a3=b754f860 items=0 ppid=1 pid=1544 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/python" subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: jockey-backend,system_dbusd_t,var_t,None,getattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-28 18:41:35 UTC
Well, a new policy would be needed but jockey-backend is not a part of Fedora.

What does jockey-backend do?

Comment 2 Daniel Walsh 2012-02-28 19:57:56 UTC
Shouldn't jockey-backend be running as initrc_t and thus be unconfined?

Comment 3 Miroslav Grepl 2012-03-15 16:12:38 UTC
*** Bug 787760 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2012-03-15 16:14:24 UTC
I added a new policy for jockey-backend

/usr/share/jockey/jockey-backend        --  gen_context(system_u:object_r:jockey_exec_t,s0)

Comment 5 Fedora Update System 2012-04-18 12:54:43 UTC
selinux-policy-3.10.0-84.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-84.fc16

Comment 6 Fedora Update System 2012-04-22 03:36:52 UTC
selinux-policy-3.10.0-84.fc16 has been pushed to the Fedora 16 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.