76 lines
2 KiB
Text
76 lines
2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2022 Mikhail Morfikov
|
|
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/blueman-*
|
|
profile blueman @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/audio>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/fonts>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/gtk>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
include <abstractions/thumbnails-cache-read>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/wayland>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
network bluetooth raw,
|
|
|
|
ptrace (read) peer=gjs-console,
|
|
|
|
@{exec_path} mrix,
|
|
|
|
@{bin}/{b,d}ash rix,
|
|
|
|
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
|
|
@{lib}/gio-launch-desktop rPx -> child-open,
|
|
|
|
@{bin}/blueman-tray rPx,
|
|
|
|
/usr/share/blueman/{,**} r,
|
|
/usr/share/X11/xkb/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
/var/lib/blueman/network.state r,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/bluetooth*/ r,
|
|
owner @{HOME}/bluetooth*/* rw,
|
|
|
|
owner @{user_cache_dirs}/blueman-tray-[0-9]* rw,
|
|
owner @{user_cache_dirs}/blueman-services-[0-9]* rw,
|
|
owner @{user_cache_dirs}/blueman-adapters-[0-9]* rw,
|
|
owner @{user_cache_dirs}/blueman-manager-[0-9]* rw,
|
|
owner @{user_cache_dirs}/blueman-applet-[0-9]* rw,
|
|
|
|
owner @{user_cache_dirs}/obexd/ rw,
|
|
owner @{user_cache_dirs}/obexd/* rw,
|
|
|
|
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
|
|
/dev/dri/card@{int} rw,
|
|
/dev/rfkill r,
|
|
/dev/shm/ r,
|
|
/dev/tty rw,
|
|
|
|
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
|
|
|
include if exists <local/blueman>
|
|
}
|