mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
43 lines
921 B
Plaintext
43 lines
921 B
Plaintext
# 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>
|
|
}
|