apparmor.d/apparmor.d/groups/systemd/systemd-localed
2023-12-04 21:54:45 +00:00

45 lines
1.2 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2022 Mikhail Morfikov
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-localed
profile systemd-localed @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/dbus-strict>
include <abstractions/systemd-common>
# Needed?
audit capability net_admin,
dbus bind bus=system name=org.freedesktop.locale1,
dbus receive bus=system path=/org/freedesktop/locale1
interface=org.freedesktop.DBus.Properties
member=GetAll
peer=(name=:*),
@{exec_path} mr,
/usr/share/kbd/keymaps/{,**} r,
/usr/share/systemd/*-map r,
/usr/share/X11/xkb/{,**} r,
/etc/.#vconsole.conf* rw,
/etc/default/.#locale* rw,
/etc/default/keyboard r,
/etc/default/locale rw,
/etc/locale.conf r,
/etc/vconsole.conf rw,
/etc/X11/xorg.conf.d/ r,
/etc/X11/xorg.conf.d/.#*.confd* rw,
/etc/X11/xorg.conf.d/*.conf rw,
@{run}/systemd/notify rw,
include if exists <local/systemd-localed>
}