Bug 890044 - SELinux is preventing /usr/sbin/bluetoothd from 'unlink' accesses on the sock_file sdp.
Summary: SELinux is preventing /usr/sbin/bluetoothd from 'unlink' accesses on the sock...
Keywords:
Status: CLOSED DUPLICATE of bug 710728
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:b85e47b24b7048f9e454d902e69...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-24 15:05 UTC by Frank Büttner
Modified: 2012-12-24 18:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-24 18:30:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-24 15:05 UTC, Frank Büttner
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-24 15:05 UTC, Frank Büttner
no flags Details

Description Frank Büttner 2012-12-24 15:05:08 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.10-2.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/bluetoothd from 'unlink' accesses on the sock_file sdp.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If sie denken, dass bluetoothd standardmässig erlaubt sein sollte, unlink Zugriff auf sdp sock_file zu erhalten.
:Then sie sollten dies als Fehler melden.
:Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
:Do
:zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
:# grep bluetoothd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:bluetooth_t:s0
:Target Context                unconfined_u:object_r:var_run_t:s0
:Target Objects                sdp [ sock_file ]
:Source                        bluetoothd
:Source Path                   /usr/sbin/bluetoothd
:Port                          <Unbekannt>
:Host                          (removed)
:Source RPM Packages           bluez-4.99-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.10-2.fc17.x86_64 #1 SMP Tue
:                              Dec 11 18:07:34 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-12-24 15:56:22 CET
:Last Seen                     2012-12-24 15:56:22 CET
:Local ID                      4485538f-a52d-408a-8077-c51c19ed30f3
:
:Raw Audit Messages
:type=AVC msg=audit(1356360982.105:225): avc:  denied  { unlink } for  pid=9793 comm="bluetoothd" name="sdp" dev="tmpfs" ino=426713 scontext=system_u:system_r:bluetooth_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=sock_file
:
:
:type=SYSCALL msg=audit(1356360982.105:225): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fff248feda2 a1=1 a2=0 a3=7fff248feb00 items=0 ppid=1 pid=9793 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=bluetoothd exe=/usr/sbin/bluetoothd subj=system_u:system_r:bluetooth_t:s0 key=(null)
:
:Hash: bluetoothd,bluetooth_t,var_run_t,sock_file,unlink
:
:audit2allow
:
:#============= bluetooth_t ==============
:allow bluetooth_t var_run_t:sock_file unlink;
:
:audit2allow -R
:
:#============= bluetooth_t ==============
:allow bluetooth_t var_run_t:sock_file unlink;
:


Potential duplicate bug: 710728

Comment 1 Frank Büttner 2012-12-24 15:05:12 UTC
Created attachment 668502 [details]
File: type

Comment 2 Frank Büttner 2012-12-24 15:05:14 UTC
Created attachment 668503 [details]
File: hashmarkername

Comment 3 Frank Büttner 2012-12-24 18:30:20 UTC
Solution was:
1. systemctl stop bluetooth.service
2. chcon system_u:object_r:bluetooth_var_run_t,s0 /var/run/sdp
3. systemctl start bluetooth.service

Because /var/run/sdp was in an unconfined context like at #710728

*** This bug has been marked as a duplicate of bug 710728 ***


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