apparmor.d/apparmor.d/groups/gnome/gsd-rfkill
2021-04-29 21:02:28 +01:00

25 lines
542 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gsd-rfkill
profile gsd-rfkill @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
signal (receive) set=(term, hup) peer=gdm*,
network netlink raw,
@{exec_path} mr,
/sys/devices/virtual/misc/rfkill/uevent r,
/dev/rfkill rw,
owner /dev/tty[0-9]* rw,
include if exists <local/gsd-rfkill>
}