feat(profiles): add kgx.

This commit is contained in:
Alexandre Pujol 2023-03-31 16:49:41 +01:00
parent e84e22a917
commit 1131fdf412
Failed to generate hash of commit
3 changed files with 47 additions and 1 deletions

View file

@ -70,7 +70,7 @@ profile child-open {
/{usr/,}bin/gnome-calculator rPUx,
/{usr/,}bin/gnome-disk-image-mounter rPx,
/{usr/,}bin/gnome-disks rPx,
/{usr/,}bin/kgx rPUx,
/{usr/,}bin/kgx rPx,
/{usr/,}bin/okular rPx,
/{usr/,}bin/qbittorrent rPx,
/{usr/,}bin/qpdfview rPx,

View file

@ -0,0 +1,45 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/kgx
profile kgx @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/dconf-write>
include <abstractions/fonts>
include <abstractions/freedesktop.org>
include <abstractions/gtk>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
ptrace (read),
@{exec_path} mr,
# The shell is not confined on purpose.
/{usr/,}bin/{,b,d,rb}ash rUx,
/{usr/,}bin/{c,k,tc,z}sh rUx,
# Some CLI program can be launched directly from Gnome Shell
/{usr/,}bin/htop rPx,
/{usr/,}bin/micro rPUx,
/{usr/,}bin/nvtop rPx,
/{usr/,}lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
/{usr/,}lib/gio-launch-desktop rPx -> child-open,
/usr/share/themes/{,**} r,
/usr/share/X11/xkb/{,**} r,
@{PROC}/@{pids}/cmdline r,
@{PROC}/@{pids}/stat r,
@{PROC}/1/cgroup r,
owner @{PROC}/@{pid}/cgroup r,
include if exists <local/kgx>
}

View file

@ -124,6 +124,7 @@ irqbalance complain
iwctl complain
iwd complain
kernel-install complain
kgx complain
kmod attach_disconnected,complain
landscape-sysinfo complain
landscape-sysinfo.wrapper complain