apparmor.d/apparmor.d/profiles-a-f/freefall
2021-09-15 16:55:27 +01:00

27 lines
530 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/freefall
profile freefall @{exec_path} {
include <abstractions/base>
capability sys_nice,
capability ipc_lock,
capability mknod,
@{exec_path} mr,
/dev/freefall rw,
/dev/sd[a-z] rk,
/dev/sd[a-z][0-9]* rk,
@{sys}/devices/**/unload_heads r,
@{sys}/class/leds/**/brightness r,
include if exists <local/freefall>
}