80 lines
2.9 KiB
Text
80 lines
2.9 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/update-notifier
|
|
profile update-notifier @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/apt-common>
|
|
include <abstractions/audio>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/fonts>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/gtk>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/python>
|
|
|
|
dbus receive bus=session path=/org/ayatana/NotificationItem{,/**}
|
|
interface={com.canonical.dbusmenu,org.freedesktop.DBus.Properties}
|
|
peer=(name=:*, label=gnome-shell),
|
|
|
|
dbus (send) bus=accessibility path=/org/a11y/atspi/registry{,/**}
|
|
interface=org.a11y.atspi.DeviceEventController
|
|
peer=(name=org.a11y.atspi.Registry, label=at-spi2-registryd),
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/ionice rix,
|
|
/{usr/,}bin/ischroot rix,
|
|
/{usr/,}bin/nice rix,
|
|
|
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
|
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
|
/{usr/,}bin/pkexec rPx, # TODO: rCx or rix to run /usr/lib/update-notifier/package-system-locked
|
|
/{usr/,}bin/snap rPx,
|
|
/{usr/,}bin/software-properties-gtk rPx,
|
|
/{usr/,}bin/systemctl rPx -> child-systemctl,
|
|
/{usr/,}bin/update-manager rPx,
|
|
/{usr/,}lib/ubuntu-release-upgrader/check-new-release-gtk rPx,
|
|
/{usr/,}lib/update-notifier/apt_check.py rix,
|
|
/{usr/,}lib/update-notifier/list-oem-metapackages rPx,
|
|
/{usr/,}lib/update-notifier/livepatch-notification rPx,
|
|
/{usr/,}lib/update-notifier/package-system-locked rPx,
|
|
/usr/share/apport/apport-checkreports rPx,
|
|
/usr/share/apport/apport-gtk rPx,
|
|
|
|
/{usr/,}lib/python3.[0-9]*/dist-packages/{apt,gi}/**/__pycache__/{,**} rw,
|
|
|
|
/usr/share/dpkg/cputable r,
|
|
/usr/share/dpkg/tupletable r,
|
|
/usr/share/update-notifier/{,**} r,
|
|
/usr/share/X11/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/snapd/desktop/applications/{,**} r,
|
|
/var/lib/snapd/desktop/icons/ r,
|
|
/var/lib/update-notifier/user.d/ r,
|
|
|
|
owner @{user_config_dirs}update-notifier/ w,
|
|
owner @{user_share_dirs}/applications/ r,
|
|
|
|
owner @{run}/user/@{uid}/at-spi/bus rw,
|
|
owner @{run}/user/@{uid}/bus rw,
|
|
owner @{run}/user/@{uid}/update-notifier.pid rwk,
|
|
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
|
|
|
owner /tmp/#[0-9]* rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
|
|
include if exists <local/update-notifier>
|
|
}
|