Add gnome-system-monitor.

This commit is contained in:
Alexandre Pujol 2021-07-31 19:17:25 +01:00
parent d38c573844
commit 80a1b1b401
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,62 @@
# 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} = /{usr/,}bin/gnome-system-monitor
profile gnome-system-monitor @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/gnome>
include <abstractions/nameservice-strict>
capability sys_ptrace,
network inet dgram,
network inet6 dgram,
network netlink raw,
ptrace (read),
signal (send) set=(kill term cont stop),
@{exec_path} mr,
/{usr/,}bin/pkexec rPx,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
/usr/share/gnome-system-monitor/{,**} r,
/usr/share/pixmaps/{,**} r,
include <abstractions/dconf>
owner @{run}/user/@{uid}/dconf/ rw,
owner @{run}/user/@{uid}/dconf/user rw,
@{sys}/devices/pci[0-9]*/**/net/*/statistics/collisions r,
@{sys}/devices/pci[0-9]*/**/net/*/statistics/rx_{bytes,errors,packets} r,
@{sys}/devices/pci[0-9]*/**/net/*/statistics/tx_{bytes,errors,packets} r,
@{sys}/devices/virtual/net/*/statistics/collisions r,
@{sys}/devices/virtual/net/*/statistics/rx_{bytes,errors,packets} r,
@{sys}/devices/virtual/net/*/statistics/tx_{bytes,errors,packets} r,
@{PROC}/ r,
@{PROC}/@{pids}/cgroup r,
@{PROC}/@{pids}/cmdline r,
@{PROC}/@{pids}/fd/ r,
@{PROC}/@{pids}/io r,
@{PROC}/@{pids}/mounts r,
@{PROC}/@{pids}/net/dev r,
@{PROC}/@{pids}/net/tcp{,6} r,
@{PROC}/@{pids}/net/unix r,
@{PROC}/@{pids}/smaps r,
@{PROC}/@{pids}/stat r,
@{PROC}/@{pids}/statm r,
@{PROC}/@{pids}/wchan r,
@{PROC}/vmstat r,
@{run}/systemd/sessions/[0-9]*{,.ref} r,
include if exists <local/gnome-system-monitor>
}