feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-04-16 20:48:14 +01:00
parent 03b98ad7de
commit 2f455786e7
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
6 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,20 @@
# 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/gkbd-keyboard-display
profile gkbd-keyboard-display @{exec_path} {
include <abstractions/base>
include <abstractions/fonts>
include <abstractions/dconf-write>
@{exec_path} mr,
/usr/share/X11/{,**} r,
include if exists <local/gkbd-keyboard-display>
}

View File

@ -23,7 +23,7 @@ profile gnome-characters @{exec_path} {
/{usr/,}bin/gjs-console rix,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
/usr/share/icu/{,**} r,
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
/usr/share/libdrm/*.ids r,
/usr/share/org.gnome.Characters/org.gnome.Characters.*.gresource r,
/usr/share/themes/{,**} r,

View File

@ -36,7 +36,7 @@ profile gnome-terminal-server @{exec_path} {
/{usr/,}lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
/{usr/,}lib/gio-launch-desktop rPx -> child-open,
/usr/share/icu/{,**} r,
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
/usr/share/X11/xkb/{,**} r,
/var/lib/flatpak/exports/share/icons/{,**} r,

View File

@ -50,7 +50,7 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
/{usr/,}lib/gio-launch-desktop rPx -> child-open,
/usr/share/*ubuntu/applications/{,**} r,
/usr/share/icu/{,**} r,
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
/usr/share/libdrm/*.ids r,
/usr/share/nautilus/{,**} r,
/usr/share/poppler/{,**} r,

View File

@ -59,4 +59,3 @@ profile kwin_x11 @{exec_path} {
include if exists <local/kwin_x11>
}

View File

@ -24,8 +24,7 @@ profile virtinterfaced @{exec_path} flags=(attach_disconnected) {
@{run}/systemd/inhibit/*.ref rw,
owner @{run}/user/@{uid}/libvirt/common/system.token rwk,
owner @{run}/user/@{uid}/libvirt/interface/ rw,
owner @{run}/user/@{uid}/libvirt/interface/run rw,
owner @{run}/user/@{uid}/libvirt/interface/run/* rwk,
owner @{run}/user/@{uid}/libvirt/interface/run/{,*} rwk,
owner @{run}/user/@{uid}/libvirt/secrets/run/driver.pid rw,
owner @{run}/user/@{uid}/libvirt/virtinterfaced* rwk,