127 lines
3.4 KiB
Text
127 lines
3.4 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /usr/share/apport/apport-gtk
|
|
profile apport-gtk @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/apt-common>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus/org.a11y>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
|
|
capability fowner,
|
|
capability sys_ptrace,
|
|
capability syslog,
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/{f,}grep rix,
|
|
@{bin}/apt-cache rPx,
|
|
@{bin}/cut rix,
|
|
@{bin}/dpkg rPx,
|
|
@{bin}/dpkg-divert rPx,
|
|
@{bin}/dpkg-query rpx,
|
|
@{bin}/gdb rCx -> gdb,
|
|
@{bin}/gsettings rPx,
|
|
@{bin}/ischroot rix,
|
|
@{bin}/journalctl rPx,
|
|
@{bin}/killall5 rix,
|
|
@{bin}/kmod rPx,
|
|
@{bin}/ldd rix,
|
|
@{bin}/lsb_release rPx -> lsb_release,
|
|
@{bin}/md5sum rix,
|
|
@{bin}/pkexec rPx, # TODO: rCx or something
|
|
@{bin}/systemctl rPx -> child-systemctl,
|
|
@{bin}/which{,.debianutils} rix,
|
|
@{lib}/{,colord/}colord-sane rPx,
|
|
@{lib}/@{multiarch}/ld*.so* rix,
|
|
/usr/share/apport/root_info_wrapper rix,
|
|
|
|
/usr/share/alsa/{,**} r,
|
|
/usr/share/apport/{,**} r,
|
|
/usr/share/apport/general-hooks/*.py r,
|
|
/usr/share/themes/{,**} r,
|
|
/usr/share/X11/xkb/{,**} r,
|
|
|
|
/etc/apport/{,**} r,
|
|
/etc/bash_completion.d/apport_completion r,
|
|
/etc/cron.daily/apport r,
|
|
/etc/default/apport r,
|
|
/etc/gtk-3.0/settings.ini r,
|
|
/etc/init.d/apport r,
|
|
/etc/logrotate.d/apport r,
|
|
/etc/pulse/client.conf r,
|
|
/etc/pulse/client.conf.d/{,**} r,
|
|
/etc/xdg/autostart/*.desktop r,
|
|
|
|
/var/crash/{,*.@{uid}.crash} rw,
|
|
/var/lib/dpkg/info/ r,
|
|
/var/lib/dpkg/info/*.list r,
|
|
/var/lib/usbutils/*.ids r,
|
|
/var/lib/dpkg/info/*.md5sums r,
|
|
/var/log/installer/media-info r,
|
|
|
|
owner @{user_config_dirs}/pulse/cookie rk,
|
|
|
|
@{run}/snapd.socket rw,
|
|
owner @{run}/user/.mutter-Xwaylandauth.@{rand6} rw,
|
|
|
|
/tmp/[a-z0-9]* rw,
|
|
/tmp/apport_core_* rw,
|
|
/tmp/launchpadlib.cache.[a-z0-9]*/ rw,
|
|
/tmp/tmp[a-z0-9]*/{,**} rw,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/fd/ r,
|
|
@{PROC}/@{pids}/mounts r,
|
|
@{PROC}/@{pids}/stat r,
|
|
@{PROC}/modules r,
|
|
@{PROC}/version_signature r,
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
|
|
profile gdb {
|
|
include <abstractions/base>
|
|
include <abstractions/dconf>
|
|
include <abstractions/fonts>
|
|
include <abstractions/python>
|
|
|
|
@{bin}/gdb mr,
|
|
|
|
@{bin}/iconv rix,
|
|
@{bin}/* r,
|
|
|
|
/usr/share/gcc/python/**/__pycache__/{,**} rw,
|
|
|
|
/usr/share/gdb/{,**} r,
|
|
/usr/share/themes/{,**} r,
|
|
/usr/share/gnome-shell/{,**} r,
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
|
|
/etc/gdb/{,**} r,
|
|
|
|
/tmp/apport_core_* r,
|
|
|
|
@{PROC}/@{pids}/fd/ r,
|
|
|
|
}
|
|
|
|
include if exists <local/apport-gtk>
|
|
}
|