feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-10-01 16:06:28 +01:00
parent 3372593fc2
commit 352c444ae6
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
11 changed files with 23 additions and 12 deletions

View File

@ -22,7 +22,7 @@ profile dbus-daemon @{exec_path} flags=(attach_disconnected) {
capability sys_resource,
network netlink raw,
network unix stream,
network bluetooth stream,
network bluetooth seqpacket,
@ -36,8 +36,6 @@ profile dbus-daemon @{exec_path} flags=(attach_disconnected) {
ptrace (read),
unix (send receive accept) type=stream,
@{exec_path} mr,
@{bin}/ r,

View File

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -9,14 +10,10 @@ include <tunables/global>
@{exec_path} = @{bin}/xrandr
profile xrandr @{exec_path} {
include <abstractions/base>
include <abstractions/X-strict>
@{exec_path} mr,
owner @{HOME}/.Xauthority r,
/usr/share/X11/XErrorDB r,
# file_inherit
owner /dev/tty@{int} rw,
include if exists <local/xrandr>

View File

@ -12,6 +12,7 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
include <abstractions/app-launcher-user>
include <abstractions/audio>
include <abstractions/dbus-accessibility-strict>
include <abstractions/dbus-gtk>
include <abstractions/dbus-network-manager-strict>
include <abstractions/dbus-session-strict>
include <abstractions/dbus-strict>

View File

@ -50,5 +50,7 @@ profile kgx @{exec_path} {
@{PROC}/1/cgroup r,
owner @{PROC}/@{pid}/cgroup r,
/dev/ptmx rw,
include if exists <local/kgx>
}

View File

@ -84,6 +84,7 @@ profile tracker-extract @{exec_path} flags=(attach_disconnected) {
/usr/share/dconf/profile/gdm r,
/usr/share/drirc.d/{,*.conf} r,
/usr/share/gdm/greeter/applications/*.desktop r,
/usr/share/gvfs/remote-volume-monitors/{,*} r,
/usr/share/hwdata/*.ids r,
/usr/share/ladspa/rdf/{,**} r,

View File

@ -35,6 +35,7 @@ profile pacman @{exec_path} {
network inet dgram,
network inet6 dgram,
network netlink raw,
network unix stream,
ptrace (read),

View File

@ -15,6 +15,8 @@ profile code-extension-git-editor @{exec_path} {
@{bin}/{,ba,da}sh rix,
@{lib}/electron@{int}/electron rix,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/cpuinfo_max_freq r,
/dev/tty rw,
include if exists <local/code-extension-git-editor>

View File

@ -9,10 +9,9 @@ include <tunables/global>
@{exec_path} = @{bin}/gsettings
profile gsettings @{exec_path} {
include <abstractions/base>
include <abstractions/dbus-session-strict>
include <abstractions/dconf-write>
unix (connect, receive, send) type=stream peer=(addr="@/tmp/dbus-????????"),
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,

View File

@ -26,6 +26,8 @@ profile protonmail-bridge @{exec_path} {
/etc/lsb-release r,
/etc/machine-id r,
owner /var/tmp/etilqs_@{hex} rw,
owner @{user_password_store_dirs}/protonmail-credentials/{,**} r,
owner @{user_cache_dirs}/protonmail/{,**} rwk,

View File

@ -80,8 +80,7 @@ profile thunderbird @{exec_path} {
member=Introspect
peer=(name=:*, label=gnome-shell),
dbus bind bus=session
name=org.mozilla.thunderbird.*,
dbus bind bus=session name=org.mozilla.thunderbird.*,
@{exec_path} mrix,
@ -146,6 +145,7 @@ profile thunderbird @{exec_path} {
owner @{user_mail_dirs}/ rw,
owner @{user_mail_dirs}/** rwl -> @{user_mail_dirs}/**,
owner @{config_dirs}/ rw,
owner @{config_dirs}/*/ rw,
owner @{config_dirs}/*/** rwk,
owner @{config_dirs}/installs.ini rw,

View File

@ -135,11 +135,19 @@ profile udisksd @{exec_path} flags=(attach_disconnected) {
@{run}/cryptsetup/ r,
@{run}/cryptsetup/L* rwk,
@{run}/udev/data/+pci:* r,
@{run}/udev/data/+platform:* r,
@{run}/udev/data/c23[4-9]:@{int} r, # For dynamic assignment range 234 to 254
@{run}/udev/data/c24[0-9]:@{int} r,
@{run}/udev/data/c25[0-4]:@{int} r,
@{sys}/bus/ r,
@{sys}/bus/pci/slots/ r,
@{sys}/class/ r,
@{sys}/class/nvme-subsystem/ r,
@{sys}/class/nvme/ r,
@{sys}/devices/@{pci}/uevent r,
@{sys}/devices/pci[0-9]*/**/{ata,usb,mmc,virtio}[0-9]/{,**/}uevent w,
@{sys}/devices/pci[0-9]*/**/{ata,usb,mmc}[0-9]/{,**/}remove rw,
@{sys}/devices/virtual/bdi/**/read_ahead_kb r,