apparmor.d/profiles/bluetoothd
2021-04-01 16:17:47 +01:00

42 lines
921 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/bluetooth/bluetoothd
@{exec_path} += /usr/libexec/bluetooth/bluetoothd
profile bluetoothd @{exec_path} {
include <abstractions/base>
# 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,
/{usr/,}lib/@{multiarch}/bluetooth/plugins/*.so mr,
/etc/bluetooth/{,*.conf} r,
/dev/uinput rw,
/dev/rfkill rw,
/dev/hidraw[0-9]* rw,
@{run}/sdp rw,
@{sys}/devices/virtual/dmi/id/chassis_type r,
@{sys}/devices/platform/**/rfkill/**/name r,
/var/lib/bluetooth/{,**} rw,
include if exists <local/bluetoothd>
}