82 lines
2.3 KiB
Text
82 lines
2.3 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} = @{bin}/update-manager
|
|
profile update-manager @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/apt-common>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/bus/org.a11y>
|
|
include <abstractions/bus/org.freedesktop.login1>
|
|
include <abstractions/bus/org.freedesktop.NetworkManager>
|
|
include <abstractions/bus/org.freedesktop.portal.Desktop>
|
|
include <abstractions/bus/org.freedesktop.UPower>
|
|
include <abstractions/consoles>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
signal (send) peer=apt-methods-http,
|
|
|
|
# dbus: own bus=session name=org.freedesktop.UpdateManager
|
|
|
|
# dbus: talk bus=system name=org.debian.apt label=apt
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/dpkg rPx -> child-dpkg,
|
|
@{bin}/hwe-support-status rPx,
|
|
@{bin}/ischroot rix,
|
|
@{bin}/lsb_release rPx -> lsb_release,
|
|
@{bin}/snap rPUx,
|
|
@{bin}/software-properties-gtk rPx,
|
|
@{bin}/uname rix,
|
|
@{lib}/apt/methods/http{,s} rPx,
|
|
|
|
/usr/share/distro-info/{,**} r,
|
|
/usr/share/themes/{,**} r,
|
|
/usr/share/ubuntu-release-upgrader/{,**} r,
|
|
/usr/share/update-manager/{,**} r,
|
|
/usr/share/X11/{,**} r,
|
|
|
|
/etc/gtk-3.0/settings.ini r,
|
|
/etc/update-manager/{,**} r,
|
|
|
|
/boot/ r,
|
|
|
|
/var/lib/dpkg/info/*.list r,
|
|
/var/lib/dpkg/updates/ r,
|
|
/var/lib/snapd/desktop/applications/{,mimeinfo.cache} r,
|
|
/var/lib/snapd/desktop/icons/{,*} r,
|
|
/var/lib/update-manager/{,**} rw,
|
|
|
|
owner @{user_cache_dirs}/update-manager-core/{,**} rw,
|
|
|
|
@{run}/systemd/inhibit/*.ref w,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
|
|
|
include if exists <local/update-manager>
|
|
}
|