feat(profiles): reorganise a few profiles.

This commit is contained in:
Alexandre Pujol 2022-06-25 00:18:26 +01:00
parent fcbe764ccf
commit c04363c1b6
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 125 additions and 145 deletions

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2021 Mikhail Morfikov
# Copyright (C) 2015-2022 Mikhail Morfikov
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -27,20 +28,19 @@ profile bluetoothd @{exec_path} {
/etc/bluetooth/{,*.conf} r,
/var/lib/bluetooth/{,**} rw,
@{run}/sdp rw,
@{run}/udev/data/+hid:* r,
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/bluetooth/**/{uevent,name} r,
@{sys}/devices/platform/**/rfkill/**/name r,
@{sys}/devices/virtual/dmi/id/chassis_type r,
/dev/uhid rw,
/dev/uinput rw,
/dev/rfkill rw,
/dev/hidraw[0-9]* rw,
@{run}/sdp rw,
@{run}/udev/data/+hid:* r,
@{sys}/devices/virtual/dmi/id/chassis_type r,
@{sys}/devices/platform/**/rfkill/**/name r,
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/bluetooth/**/{uevent,name} r,
/var/lib/bluetooth/{,**} rw,
include if exists <local/bluetoothd>
}