32 lines
808 B
Text
32 lines
808 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/at-spi2-core/at-spi2-registryd
|
|
@{exec_path} += /usr/{lib,libexec}/at-spi2-registryd
|
|
profile at-spi2-registryd @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/deny-root-dir-access>
|
|
|
|
# Needed?
|
|
deny capability sys_nice,
|
|
|
|
signal (receive) set=term peer=gdm,
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{HOME}/.Xauthority r,
|
|
/var/lib/lightdm/.Xauthority r,
|
|
@{run}/user/@{uid}/gdm/Xauthority r,
|
|
|
|
# file_inherit
|
|
owner @{HOME}/.xsession-errors w,
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/at-spi2-registryd>
|
|
}
|