mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 09:28:17 +01:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# 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.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{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} {
|
|
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,
|
|
|
|
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,
|
|
|
|
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,
|
|
|
|
include if exists <local/at-spi-bus-launcher>
|
|
}
|