Bug 913368 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file cmdline.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file cmd...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:318ee190e171d6b71cdfea8f84f...
: 913374 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-21 05:29 UTC by ali
Modified: 2013-02-24 09:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-24 09:00:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ali 2013-02-21 05:29:23 UTC
Description of problem:
SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file cmdline.

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

If you believe that python2.7 should be allowed read access on the cmdline 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 blueman-mechani /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:blueman_t:s0-s0:c0.c1023
Target Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Objects                cmdline [ file ]
Source                        blueman-mechani
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-13.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-79.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.8-202.fc18.x86_64 #1 SMP Fri
                              Feb 15 17:33:07 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-21 08:58:13 IRST
Last Seen                     2013-02-21 08:58:13 IRST
Local ID                      b5a68de6-e98c-40ff-ad0e-fd13282dfd8d

Raw Audit Messages
type=AVC msg=audit(1361424493.842:409): avc:  denied  { read } for  pid=21277 comm="blueman-mechani" name="cmdline" dev="proc" ino=111043 scontext=system_u:system_r:blueman_t:s0-s0:c0.c1023 tcontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tclass=file


type=SYSCALL msg=audit(1361424493.842:409): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffa66218c0 a1=0 a2=1b6 a3=238 items=0 ppid=21276 pid=21277 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=blueman-mechani exe=/usr/bin/python2.7 subj=system_u:system_r:blueman_t:s0-s0:c0.c1023 key=(null)

Hash: blueman-mechani,blueman_t,system_dbusd_t,file,read

audit2allow

#============= blueman_t ==============
allow blueman_t system_dbusd_t:file read;

audit2allow -R

#============= blueman_t ==============
allow blueman_t system_dbusd_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.8-202.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-21 16:21:15 UTC
*** Bug 913374 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2013-02-21 17:16:54 UTC
I added fixes.

commit af99415071c21418123ba2b97c831d60091f3937
Author: Miroslav Grepl <mgrepl>
Date:   Thu Feb 21 18:06:33 2013 +0100

    Fix dbus_system_domain() interface

Comment 3 Fedora Update System 2013-02-22 08:21:49 UTC
selinux-policy-3.11.1-81.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-81.fc18

Comment 4 Fedora Update System 2013-02-24 09:00:55 UTC
selinux-policy-3.11.1-81.fc18 has been pushed to the Fedora 18 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.