Bug 867615 - SELinux is preventing blueman-mechanism from 'read' accesses on the directory /var/tmp.
Summary: SELinux is preventing blueman-mechanism from 'read' accesses on the directory...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: blueman
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Juan Manuel Rodriguez
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:94647628e3f3ff7d8aeac374123...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-17 20:48 UTC by Matthew Miller
Modified: 2013-12-09 23:06 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-09 23:06:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-17 20:48 UTC, Matthew Miller
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-17 20:48 UTC, Matthew Miller
no flags Details

Description Matthew Miller 2012-10-17 20:48:15 UTC
Description of problem:
Fresh install of F18 beta with default packages. Did yum groupinstall of xfce, and logged into xfce. This is one of several immediate AVCs.

Additional info:
libreport version: 2.0.16
kernel:         3.6.2-2.fc18.x86_64

description:
:Below is the report from the SELinux troubleshooter. But, why is blueman-mechanism trying to read /var/tmp in the first place?
:
:
:SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /var/tmp.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed read access on the tmp 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 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:object_r:tmp_t:s0
:Target Objects                /var/tmp [ dir ]
: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           filesystem-3.1-2.fc18.x86_64
:Policy RPM                    selinux-policy-3.11.1-36.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-2.fc18.x86_64 #1 SMP Wed Oct
:                              17 05:56:07 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-18 01:11:44 EDT
:Last Seen                     2012-10-18 01:11:44 EDT
:Local ID                      72e1d11d-5f00-4e97-bb5e-8f42a915508d
:
:Raw Audit Messages
:type=AVC msg=audit(1350537104.262:312): avc:  denied  { read } for  pid=2098 comm="blueman-mechani" name="tmp" dev="sda3" ino=2359349 scontext=system_u:system_r:blueman_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1350537104.262:312): arch=x86_64 syscall=open success=no exit=EACCES a0=3eaca42603 a1=0 a2=1b6 a3=238 items=0 ppid=2097 pid=2098 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 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,tmp_t,dir,read
:
:audit2allow
:
:#============= blueman_t ==============
:allow blueman_t tmp_t:dir read;
:
:audit2allow -R
:
:#============= blueman_t ==============
:allow blueman_t tmp_t:dir read;
:

Comment 1 Matthew Miller 2012-10-17 20:48:18 UTC
Created attachment 629073 [details]
File: type

Comment 2 Matthew Miller 2012-10-17 20:48:19 UTC
Created attachment 629074 [details]
File: hashmarkername

Comment 3 Matthew Miller 2012-10-17 20:50:26 UTC
Although this is an SELinux denial, before changing the policy, I wonder if someone who knows this package could verify that it really needs access to /var/tmp?

Comment 4 Ondra Pelech 2012-10-26 11:17:59 UTC
1. install blueman
2. run blueman


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

Comment 5 Andrew Manison 2012-10-28 17:22:46 UTC
Logging in to a newly installed system, with XFCE desktop. Error appears on every login.

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

Comment 6 Miroslav Grepl 2012-10-29 09:16:40 UTC
It relates with sys_nice/setsched

Comment 7 Stuart 2012-11-03 08:42:34 UTC
Fresh installation of fedora 64 as a virtualbox guest vm. Receive an SELinux warning stating SELinux is preventing /usr/bin/python2.7 from reading tmp

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

Comment 8 Juan Manuel Rodriguez 2013-12-09 23:06:29 UTC
Hi. I'm closing this bug as Blueman has been retired from Fedora. 

If you wish to file a bug against upstream, a new Blueman fork has been created in this github repository. [1]

I apologize for the inconvenience. 

[1] https://github.com/cschramm/blueman


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