mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add kgx.
This commit is contained in:
parent
e84e22a917
commit
1131fdf412
3 changed files with 47 additions and 1 deletions
|
@ -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,
|
||||
|
|
45
apparmor.d/groups/gnome/kgx
Normal file
45
apparmor.d/groups/gnome/kgx
Normal 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>
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue