* 'tunables' of https://github.com/nobody43/apparmor.d: dbus temp tails Update apparmor.d Update gdm-runtime-config more unrelated changes adjust date-time random tails rename to int, convert more profiles fixes tunables
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/{,ibus/}ibus-portal
|
|
profile ibus-portal @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/ibus>
|
|
|
|
signal (receive) set=(term, hup) peer=gdm*,
|
|
|
|
dbus send bus=session path=/org/freedesktop/DBus
|
|
interface=org.freedesktop.DBus
|
|
member={RequestName,ReleaseName}
|
|
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
|
|
|
dbus receive bus=session path=/{,org}
|
|
interface=org.freedesktop.DBus.Introspectable
|
|
member=Introspect
|
|
peer=(name=:*, label=gnome-shell),
|
|
|
|
dbus bind bus=session name=org.freedesktop.portal.IBus,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{lib}/gio/modules/{,*} r,
|
|
@{lib}/locale/locale-archive r,
|
|
|
|
/usr/share/locale/locale.alias r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
/var/lib/gdm{3,}/.config/ibus/bus/ r,
|
|
/var/lib/gdm{3,}/.config/ibus/bus/@{md5}-unix-{,wayland-}@{int} r,
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/ibus-portal>
|
|
}
|