apparmor.d/profiles/bluetoothd

43 lines
921 B
Text
Raw Normal View History

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
2020-09-18 20:05:47 +02:00
@{exec_path} = /{usr/,}lib/bluetooth/bluetoothd
@{exec_path} += /usr/libexec/bluetooth/bluetoothd
profile bluetoothd @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
# Needed for configuring HCI interfaces
capability net_admin,
capability net_bind_service,
2020-12-24 13:55:12 +01:00
network bluetooth raw,
network bluetooth seqpacket,
2021-03-14 18:57:00 +01:00
network bluetooth stream,
network alg seqpacket,
2020-12-10 22:33:39 +01:00
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,
2020-10-25 10:23:34 +01:00
@{run}/sdp rw,
@{sys}/devices/virtual/dmi/id/chassis_type r,
@{sys}/devices/platform/**/rfkill/**/name r,
/var/lib/bluetooth/{,**} rw,
2020-12-10 22:33:39 +01:00
include if exists <local/bluetoothd>
}