feat(profiles): add localectl.

This commit is contained in:
Alexandre Pujol 2022-10-01 18:53:11 +01:00
parent 65bf8278bc
commit 1a73271a1a
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# 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/,}bin/localectl
profile localectl @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
@{exec_path} mr,
/{usr/,}bin/pager rPx -> child-pager,
/{usr/,}bin/less rPx -> child-pager,
/{usr/,}bin/more rPx -> child-pager,
/usr/share/kbd/keymaps/{,**} r,
include if exists <local/localectl>
}

View File

@ -94,6 +94,7 @@ lastlog complain
libvirt-dbus complain libvirt-dbus complain
libvirtd attach_disconnected,complain libvirtd attach_disconnected,complain
locale-gen complain locale-gen complain
localectl complain
login complain login complain
lvm complain lvm complain
lvmconfig complain lvmconfig complain