apparmor.d/apparmor.d/groups/bluetooth/blueman
Alexandre Pujol 0fce2e526d
Merge branch 'xfce' of github.com:nobody43/apparmor.d into nobody43-xfce
* 'xfce' of github.com:nobody43/apparmor.d:
  xfce, fixes
  Adapt to RO root
  xfce, flags
  xfce, proper abi
  xfce, new profiles
  xfce, updates
2025-03-23 16:18:46 +01:00

70 lines
1.8 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2022 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/blueman-*
profile blueman @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/audio-client>
include <abstractions/bus-accessibility>
include <abstractions/bus-session>
include <abstractions/dconf-write>
include <abstractions/desktop>
include <abstractions/fontconfig-cache-read>
include <abstractions/nameservice-strict>
include <abstractions/python>
include <abstractions/thumbnails-cache-read>
include <abstractions/user-download-strict>
network inet stream,
network inet6 stream,
network netlink raw,
network bluetooth raw,
ptrace (read) peer=gjs-console,
#aa:dbus own bus=session name=org.blueman.Applet
#aa:dbus own bus=session name=org.blueman.Manager
@{exec_path} mrix,
@{sh_path} rix,
@{open_path} rix,
/usr/share/blueman/{,**} r,
/var/lib/blueman/network.state r,
owner @{HOME}/ r,
owner @{HOME}/bluetooth*/ r,
owner @{HOME}/bluetooth*/* rw,
owner @{user_cache_dirs}/blueman-tray-@{int} rw,
owner @{user_cache_dirs}/blueman-services-@{int} rw,
owner @{user_cache_dirs}/blueman-adapters-@{int} rw,
owner @{user_cache_dirs}/blueman-manager-@{int} rw,
owner @{user_cache_dirs}/blueman-applet-@{int} rw,
owner @{user_cache_dirs}/obexd/ rw,
owner @{user_cache_dirs}/obexd/* rw,
@{PROC}/@{pids}/cmdline r,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/mounts 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>
}
# vim:syntax=apparmor