Bug 920476 - SELinux is preventing /usr/sbin/bluetoothd from 'open' accesses on the file /etc/machine-info.
Summary: SELinux is preventing /usr/sbin/bluetoothd from 'open' accesses on the file /...
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:37d6e53bca4ba3c445db6345bd2...
: 920474 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 08:18 UTC by Ankur Sinha (FranciscoD)
Modified: 2013-03-14 03:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-14 03:02:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2013-03-12 08:18:32 UTC
Description of problem:
Ran systemctl restart bluetooth.service and attempted to tether system to cell internet via bluetooth
SELinux is preventing /usr/sbin/bluetoothd from 'open' accesses on the file /etc/machine-info.

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

If you believe that bluetoothd should be allowed open 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                   /usr/sbin/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                   1
First Seen                    2005-02-25 04:38:52 EST
Last Seen                     2005-02-25 04:38:52 EST
Local ID                      7399f8ca-daeb-4d58-9355-67d9a9db23ef

Raw Audit Messages
type=AVC msg=audit(1109266732.930:387): avc:  denied  { open } for  pid=6341 comm="bluetoothd" path="/etc/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(1109266732.930:387): arch=x86_64 syscall=open success=no exit=EACCES a0=7f918dcc221d a1=0 a2=7f918ca05466 a3=12 items=0 ppid=1 pid=6341 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,open

audit2allow

#============= bluetooth_t ==============
allow bluetooth_t hostname_etc_t:file open;

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:20:47 UTC
Fixed in selinux-policy-3.11.1-85.fc18.noarch

Comment 2 Miroslav Grepl 2013-03-12 10:21:00 UTC
*** Bug 920474 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2013-03-12 13:56:29 UTC
selinux-policy-3.11.1-85.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18

Comment 4 Fedora Update System 2013-03-12 23:38:22 UTC
Package selinux-policy-3.11.1-85.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-85.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-14 03:02:05 UTC
selinux-policy-3.11.1-85.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.