Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1057989 - SELinux is preventing /usr/libexec/bluetooth/bluetoothd from 'open' accesses on the file /etc/bluetooth/network.conf.
Summary: SELinux is preventing /usr/libexec/bluetooth/bluetoothd from 'open' accesses ...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:57e78b26651c93ccb53afa822d9...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-01-26 11:27 UTC by Christian Stadelmann
Modified: 2014-01-27 10:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-01-27 10:36:21 UTC

Attachments (Terms of Use)

Description Christian Stadelmann 2014-01-26 11:27:41 UTC
Description of problem:
After adding configuration files /etc/bluetooth/{bluetooth,input,main,network,proximity}.conf I'm getting a SELinux alert that bluetoothd is not allowed to open/read those files. In my opinion bluetoothd must be allowed to read its own configuration files.
SELinux is preventing /usr/libexec/bluetooth/bluetoothd from 'open' accesses on the file /etc/bluetooth/network.conf.

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

If sie denken, dass es bluetoothd standardmässig erlaubt sein sollte, open Zugriff auf network.conf file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
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:user_tmp_t:s0
Target Objects                /etc/bluetooth/network.conf [ file ]
Source                        bluetoothd
Source Path                   /usr/libexec/bluetooth/bluetoothd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bluez-5.13-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-119.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.8-300.fc20.x86_64 #1 SMP Thu
                              Jan 16 01:07:50 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-01-26 12:20:08 CET
Last Seen                     2014-01-26 12:20:08 CET
Local ID                      8300f7de-6cc3-406f-bf8e-a1a77df3133c

Raw Audit Messages
type=AVC msg=audit(1390735208.781:22): avc:  denied  { open } for  pid=672 comm="bluetoothd" path="/etc/bluetooth/network.conf" dev="dm-0" ino=1711305 scontext=system_u:system_r:bluetooth_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file

type=SYSCALL msg=audit(1390735208.781:22): arch=x86_64 syscall=open success=no exit=EACCES a0=7f5aa7bbeeaa a1=0 a2=0 a3=ffffffffffffffa8 items=0 ppid=1 pid=672 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=bluetoothd exe=/usr/libexec/bluetooth/bluetoothd subj=system_u:system_r:bluetooth_t:s0 key=(null)

Hash: bluetoothd,bluetooth_t,user_tmp_t,file,open

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.12.8-300.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-27 10:36:21 UTC
You will need to fix labeling if you move files/dires.

#restorecon -R -v /etc/bluetooth

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