Bug 920474 - SELinux is preventing bluetoothd from 'read' accesses on the file /etc/machine-info.
Summary: SELinux is preventing bluetoothd from 'read' accesses on the file /etc/machin...
Keywords:
Status: CLOSED DUPLICATE of bug 920476
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:e01116495dc1cfd3afd974e60e9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 08:16 UTC by Ankur Sinha (FranciscoD)
Modified: 2013-03-12 10:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-12 10:21:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2013-03-12 08:16:33 UTC
Description of problem:
Tried to restart bluetooth.service:

sudo systemctl restart bluetooth.service
SELinux is preventing bluetoothd from 'read' accesses on the file /etc/machine-info.

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

If you believe that bluetoothd should be allowed read access on the machine-info 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 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                system_u:object_r:hostname_etc_t:s0
Target Objects                /etc/machine-info [ file ]
Source                        bluetoothd
Source Path                   bluetoothd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bluez-4.101-6.fc18.x86_64
Target RPM Packages           systemd-197-1.fc18.2.x86_64
Policy RPM                    selinux-policy-3.11.1-84.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.2-206.fc18.x86_64 #1 SMP Fri
                              Mar 8 15:03:34 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2005-02-23 20:50:42 EST
Last Seen                     2005-02-25 04:37:00 EST
Local ID                      e7611d93-f85a-42e2-96ec-4774377ac727

Raw Audit Messages
type=AVC msg=audit(1109266620.643:382): avc:  denied  { read } for  pid=5468 comm="bluetoothd" name="machine-info" dev="sda6" ino=393230 scontext=system_u:system_r:bluetooth_t:s0 tcontext=system_u:object_r:hostname_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1109266620.643:382): arch=x86_64 syscall=open success=no exit=EACCES a0=7fbe90a9621d a1=0 a2=7fbe8f7d9466 a3=12 items=0 ppid=1 pid=5468 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/sbin/bluetoothd subj=system_u:system_r:bluetooth_t:s0 key=(null)

Hash: bluetoothd,bluetooth_t,hostname_etc_t,file,read

audit2allow

#============= bluetooth_t ==============
#!!!! This avc is allowed in the current policy

allow bluetooth_t hostname_etc_t:file read;

audit2allow -R
require {
	type bluetooth_t;
}

#============= bluetooth_t ==============
systemd_hostnamed_read_config(bluetooth_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.2-206.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-03-12 10:21:00 UTC

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


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