2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2017-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}sbin/lightdm-gtk-greeter
|
|
|
|
profile lightdm-gtk-greeter @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/X>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/freedesktop.org>
|
|
|
|
include <abstractions/dri-enumerate>
|
|
|
|
include <abstractions/nameservice-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
signal (receive) set=(term, kill) peer=lightdm,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/{usr/,}bin/locale rix,
|
|
|
|
|
|
|
|
/{usr/,}lib/systemd/systemd rCx -> systemd,
|
|
|
|
|
|
|
|
# LightDM files
|
|
|
|
/usr/share/lightdm/{,**} r,
|
|
|
|
/var/lib/lightdm/{,**} rw,
|
|
|
|
|
|
|
|
# List of graphical sessions
|
|
|
|
# The X sessions are covered by abstractions/X
|
|
|
|
/usr/share/wayland-sessions/{,*.desktop} r,
|
|
|
|
|
|
|
|
# Greeter theme
|
|
|
|
/var/lib/AccountsService/{,**} r,
|
|
|
|
/usr/share/desktop-base/{,**} r,
|
|
|
|
|
|
|
|
# LightDM config files
|
|
|
|
/etc/lightdm/{,**} r,
|
|
|
|
|
|
|
|
# LightDM logs
|
|
|
|
/var/log/lightdm/{,**} rw,
|
|
|
|
|
|
|
|
owner @{HOME}/.face r,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
|
|
|
|
# For account icons
|
|
|
|
@{HOME}/.dmrc r,
|
|
|
|
@{HOME}/.face r,
|
|
|
|
|
|
|
|
/{usr/,}lib/at-spi2-core/at-spi-bus-launcher rPUx,
|
|
|
|
/usr/libexec/at-spi-bus-launcher rPUx,
|
|
|
|
|
|
|
|
|
|
|
|
profile systemd {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}lib/systemd/systemd mr,
|
|
|
|
|
|
|
|
/etc/systemd/user.conf r,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/stat r,
|
|
|
|
@{PROC}/1/environ r,
|
|
|
|
@{PROC}/1/sched r,
|
|
|
|
@{PROC}/cmdline r,
|
|
|
|
@{PROC}/sys/kernel/osrelease r,
|
|
|
|
|
|
|
|
@{sys}/firmware/efi/efivars/SecureBoot-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]* r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
/var/log/lightdm/seat[0-9]*-greeter.log w,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/lightdm-gtk-greeter>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|