apparmor.d/profiles/bluetoothd

50 lines
1.2 KiB
Text
Raw Normal View History

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
2021-03-14 18:57:00 +01:00
# Copyright (C) 2015-2021 Mikhail Morfikov
#
# 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-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>
}