apparmor.d/apparmor.d/profiles-a-f/blueman-mechanism
2022-06-25 00:16:05 +01:00

47 lines
1.2 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{libexec}/blueman-mechanism
@{exec_path} += /{usr/,}lib/blueman/blueman-mechanism
profile blueman-mechanism @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/python>
include <abstractions/nameservice-strict>
capability mknod,
capability net_admin,
capability sys_nice,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
@{libexec}/ r,
/var/lib/blueman/network.state rw,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/mounts r,
/dev/rfkill rw,
# For network AP
#/{usr/,}bin/ip rix,
#/{usr/,}{s,}bin/xtables-nft-multi rix,
#/{usr/,}{s,}bin/dnsmasq rPx,
#/{usr/,}{s,}bin/dhclient rPx,
# @{PROC}/sys/net/ipv4/ip_forward w,
# @{PROC}/sys/net/ipv4/conf/ r,
# @{PROC}/sys/net/ipv4/conf/*/forwarding w,
#owner @{run}/blueman-iptables rw,
#owner @{run}/blueman-netconfig rw,
include if exists <local/blueman-mechanism>
}