mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add systemd-vconsole-setup
This commit is contained in:
parent
21250f5eec
commit
6058ef7439
1 changed files with 34 additions and 0 deletions
34
apparmor.d/groups/systemd/systemd-vconsole-setup
Normal file
34
apparmor.d/groups/systemd/systemd-vconsole-setup
Normal file
|
@ -0,0 +1,34 @@
|
|||
# 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/systemd/systemd-vconsole-setup
|
||||
profile systemd-vconsole-setup @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
capability sys_ptrace,
|
||||
capability sys_resource,
|
||||
capability sys_tty_config,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/loadkeys rix,
|
||||
|
||||
/ r,
|
||||
|
||||
/usr/share/kbd/keymaps/{,**} r,
|
||||
|
||||
/etc/vconsole.conf r,
|
||||
|
||||
@{sys}/module/vt/parameters/default_utf8 w,
|
||||
|
||||
/dev/tty[0-9]* rw,
|
||||
|
||||
include if exists <local/systemd-vconsole-setup>
|
||||
}
|
Loading…
Reference in a new issue