apparmor.d/profiles/at-spi-bus-launcher

53 lines
1.3 KiB
Text
Raw Normal View History

# vim:syntax=apparmor
# ------------------------------------------------------------------
#
2021-01-10 16:35:07 +01:00
# Copyright (C) 2018-2021 Mikhail Morfikov
#
# 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-12-10 22:33:39 +01:00
include <tunables/global>
2020-09-18 20:05:47 +02:00
@{exec_path} = /{usr/,}lib/at-spi2-core/at-spi-bus-launcher
@{exec_path} += /usr/libexec/at-spi-bus-launcher
profile at-spi-bus-launcher @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/deny-root-dir-access>
# Needed?
deny capability sys_nice,
signal (send) set=(term, kill) peer=dbus-daemon,
2020-12-10 22:33:39 +01:00
network inet stream,
network inet6 stream,
@{exec_path} mr,
/{usr/,}bin/dbus-daemon rPUx,
owner @{PROC}/@{pid}/fd/ r,
owner @{HOME}/.Xauthority r,
/var/lib/lightdm/.Xauthority r,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
2021-02-13 15:00:16 +01:00
include <abstractions/dconf>
owner @{run}/user/[0-9]*/dconf/ rw,
owner @{run}/user/[0-9]*/dconf/user rw,
# file_inherit
owner /dev/tty[0-9]* rw,
owner @{HOME}/.xsession-errors w,
/var/log/lightdm/seat[0-9]*-greeter.log w,
2020-12-10 22:33:39 +01:00
include if exists <local/at-spi-bus-launcher>
}