apparmor.d/apparmor.d/groups/systemd/systemd-vconsole-setup
Alexandre Pujol b88b8b8c26
refractor(abs): move common and app abstraction to their own abstractions subfolder.
As the number of abstraction is increasing, it is valuable to separate "base" abstractions to programs specific ones.
2024-03-27 15:11:21 +00:00

41 lines
No EOL
923 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-vconsole-setup
profile systemd-vconsole-setup @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/common/systemd>
capability dac_override,
capability net_admin,
capability sys_ptrace,
capability sys_resource,
capability sys_tty_config,
@{exec_path} mr,
@{sh_path} rix,
@{bin}/gzip rix,
@{bin}/loadkeys rix,
@{bin}/setfont rix,
@{bin}/gzip rix,
/ r,
/usr/share/kbd/{,**} r,
/etc/vconsole.conf r,
@{sys}/module/vt/parameters/default_utf8 w,
/dev/console k,
/dev/tty@{int} rwk,
include if exists <local/systemd-vconsole-setup>
}