2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-03-14 18:57:00 +01:00
|
|
|
# Copyright (C) 2015-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-09-18 20:05:47 +02:00
|
|
|
@{exec_path} = /{usr/,}lib/bluetooth/bluetoothd
|
|
|
|
@{exec_path} += /usr/libexec/bluetooth/bluetoothd
|
2020-09-12 17:19:23 +02:00
|
|
|
profile bluetoothd @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# 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,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
@{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,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{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>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|