apparmor.d/apparmor.d/systemd-rfkill
2020-09-18 20:05:47 +02:00

36 lines
873 B
Text

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
# Copyright (C) 2020 Mikhail Morfikov
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
#abi <abi/3.0>,
#include <tunables/global>
@{exec_path} = /{usr/,}lib/systemd/systemd-rfkill
profile systemd-rfkill @{exec_path} {
#include <abstractions/base>
#include <abstractions/systemd-common>
capability net_admin,
@{exec_path} mr,
/dev/rfkill rw,
@{sys}/devices/**/rfkill[0-9]*/{uevent,name} r,
/var/lib/systemd/rfkill/* rw,
/{var/,}run/systemd/notify rw,
/{var/,}run/udev/data/+rfkill:* r,
#include if exists <local/systemd-rfkill>
}