86 lines
2.3 KiB
Text
86 lines
2.3 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} = @{libexec}/gsd-xsettings
|
|
profile gsd-xsettings @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/dbus-strict>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/dri-common>
|
|
include <abstractions/dri-enumerate>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/fonts>
|
|
include <abstractions/gtk>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/opencl>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
dbus (send,receive) bus=system path=/org/freedesktop/Accounts/User[0-9]*
|
|
interface=org.freedesktop.Accounts.User
|
|
member={SetInputSources,Changed,GetAll},
|
|
|
|
dbus (send,receive) bus=system path=/org/freedesktop/Accounts{,/User[0-9]*}
|
|
interface=org.freedesktop.DBus.Properties
|
|
member={GetAll,PropertiesChanged},
|
|
|
|
dbus send bus=system path=/org/freedesktop/Accounts
|
|
interface=org.freedesktop.Accounts
|
|
member=FindUserByName,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/cat rix,
|
|
/{usr/,}bin/which{,.debianutils} rix,
|
|
|
|
/{usr/,}bin/run-parts rCx -> run-parts,
|
|
/{usr/,}bin/busctl rPx,
|
|
/{usr/,}bin/pactl rPx,
|
|
/{usr/,}bin/xrdb rPx,
|
|
/{usr/,}lib/ibus/ibus-x11 rPx,
|
|
@{libexec}/ibus-x11 rPx,
|
|
|
|
/usr/share/dconf/profile/gdm r,
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
/usr/share/gdm/greeter-dconf-defaults r,
|
|
|
|
/etc/X11/Xsession.options r,
|
|
/etc/xdg/Xwayland-session.d/ r,
|
|
/etc/xdg/Xwayland-session.d/* rix,
|
|
|
|
/var/lib/gdm/.config/dconf/user r,
|
|
|
|
owner @{user_cache_dirs}/mesa_shader_cache/index rw,
|
|
|
|
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[a-zA-z0-9]* r,
|
|
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
|
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
|
@{run}/systemd/sessions/* r,
|
|
@{run}/systemd/users/@{uid} r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
/dev/tty rw,
|
|
/dev/tty[0-9]* rw,
|
|
|
|
profile run-parts {
|
|
include <abstractions/base>
|
|
|
|
/{usr/,}bin/run-parts mr,
|
|
|
|
/etc/X11/Xresources/ r,
|
|
|
|
}
|
|
|
|
include if exists <local/gsd-xsettings>
|
|
}
|