Profiles update.

This commit is contained in:
Alexandre Pujol 2021-07-31 18:41:54 +01:00
parent 94978242ff
commit 19ada552fe
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
6 changed files with 25 additions and 1 deletions

View File

@ -67,11 +67,13 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
owner @{HOME}/@{XDG_WALLPAPERS_DIR}/{,**} r,
owner @{HOME}/.mozilla/firefox/firefox-mpris/{,*} r,
owner @{user_config_dirs}/monitors.xml r,
owner @{user_config_dirs}/.goutputstream{,*} rw,
owner @{user_config_dirs}/ibus/* r,
owner @{user_config_dirs}/ibus/bus/[0-9a-f]*-unix-wayland-[0-9] r,
owner @{user_config_dirs}/monitors.xml rw,
/var/lib/gdm/.config/ibus/bus/[0-9a-f]*-unix-wayland-[0-9] r,
owner @{user_share_dirs}/backgrounds/{,**} rw,
owner @{user_share_dirs}/gnome-shell/{,**} rw,
owner @{user_share_dirs}/gnome-shell/extensions/{,**} r,
@ -112,6 +114,7 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
@{run}/udev/data/c189:[0-9]* r, # for /dev/bus/usb/**
@{run}/udev/data/c226:[0-9]* r, # for /dev/dri/card*
@{run}/udev/data/n[0-9]* r,
@{sys}/bus/ r,
@{sys}/class/ r,

View File

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -12,6 +13,7 @@ profile gvfsd-http @{exec_path} {
include <abstractions/base>
include <abstractions/freedesktop.org>
include <abstractions/nameservice-strict>
include <abstractions/p11-kit>
network inet stream,
network inet6 stream,
@ -23,5 +25,11 @@ profile gvfsd-http @{exec_path} {
/usr/share/glib-2.0/schemas/gschemas.compiled r,
include <abstractions/dconf>
owner @{run}/user/@{uid}/dconf/ rw,
owner @{run}/user/@{uid}/dconf/user rw,
owner @{run}/user/@{uid}/gvfsd/socket-* rw,
include if exists <local/gvfsd-http>
}

View File

@ -22,6 +22,7 @@ profile groupdel @{exec_path} {
network netlink raw,
@{exec_path} mr,
/{usr/,}{s,}bin/nscd rix,
/etc/login.defs r,

View File

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2020 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -19,6 +20,8 @@ profile pipewire @{exec_path} {
@{exec_path} mr,
/usr/share/pipewire/pipewire.conf r,
/etc/pipewire/pipewire.conf r,
/etc/pipewire/client.conf r,
@ -45,5 +48,7 @@ profile pipewire @{exec_path} {
/ r,
/dev/video[0-9]* rw,
include if exists <local/pipewire>
}

View File

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2020 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -15,6 +16,7 @@ profile pipewire-media-session @{exec_path} {
@{exec_path} mr,
/usr/share/pipewire/media-session.d/{,**} r,
/etc/pipewire/media-session.d/*.conf r,
owner @{user_config_dirs}/pipewire/ rw,
@ -41,8 +43,10 @@ profile pipewire-media-session @{exec_path} {
@{sys}/class/video4linux/ r,
@{sys}/devices/**/sound/**/uevent r,
@{sys}/devices/pci[0-9]*/**/video4linux/video[0-9]*/uevent r,
@{run}/udev/data/+sound:card[0-9]* r, # For sound
@{run}/udev/data/c81:[0-9]* r, # For video4linux
@{run}/udev/data/c116:[0-9]* r, # For ALSA
@{run}/systemd/users/@{uid} r,
@ -50,5 +54,7 @@ profile pipewire-media-session @{exec_path} {
@{sys}/devices/system/node/ r,
@{sys}/devices/system/node/node[0-9]*/meminfo r,
/dev/video[0-9]* rw,
include if exists <local/pipewire-media-session>
}

View File

@ -89,6 +89,7 @@ profile udisksd @{exec_path} flags=(attach_disconnected) {
@{PROC}/devices r,
# To be able to initialize device-mapper disk devices
/dev/mapper/ r,
/dev/mapper/control rw,
# The special /dev/loop-control file can be used to create and destroy loop devices or to find