# apparmor.d - Full set of apparmor profiles # Copyright (C) 2015-2022 Mikhail Morfikov # Copyright (C) 2021-2022 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{lib}/bluetooth/bluetoothd profile bluetoothd @{exec_path} { include # Needed for configuring HCI interfaces capability net_admin, capability net_bind_service, network bluetooth raw, network bluetooth seqpacket, network bluetooth stream, network alg seqpacket, network netlink raw, @{exec_path} mr, @{lib}/@{multiarch}/bluetooth/plugins/*.so mr, /etc/bluetooth/{,*.conf} r, /var/lib/bluetooth/{,**} rw, @{run}/sdp rw, @{run}/udev/data/+hid:* r, @{sys}/devices/pci[0-9]*/**/rfkill[0-9]*/name r, @{sys}/devices/pci[0-9]*/**/bluetooth/**/{uevent,name} r, @{sys}/devices/platform/**/rfkill/**/name r, @{sys}/devices/virtual/dmi/id/chassis_type r, @{PROC}/sys/kernel/hostname r, /dev/uhid rw, /dev/uinput rw, /dev/rfkill rw, /dev/hidraw@{int} rw, include if exists }