mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-20223 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/blueman-mechanism @{lib}/blueman/blueman-mechanism
|
|
profile blueman-mechanism @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
|
|
capability mknod,
|
|
capability net_admin,
|
|
capability sys_nice,
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{lib}/ r,
|
|
|
|
/var/lib/blueman/network.state rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
/dev/rfkill rw,
|
|
|
|
# For network AP
|
|
#@{bin}/ip rix,
|
|
#@{bin}/xtables-nft-multi rix,
|
|
#@{bin}/dnsmasq rPx,
|
|
#@{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>
|
|
}
|