apparmor.d/apparmor.d/groups/systemd/systemd-vconsole-setup
Alexandre Pujol 275d6b6e62
feat(profiles): replace old [0-9]* glob by @{int}
Beware some [0-9]* glob are actually not proper @{int}.
2023-08-18 17:09:53 +01:00

40 lines
No EOL
899 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} = @{lib}/systemd/systemd-vconsole-setup
profile systemd-vconsole-setup @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/systemd-common>
capability dac_override,
capability net_admin,
capability sys_ptrace,
capability sys_resource,
capability sys_tty_config,
@{exec_path} mr,
@{bin}/{,ba,da}sh 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/tty@{int} rw,
include if exists <local/systemd-vconsole-setup>
}