mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(profiles): general update.
This commit is contained in:
parent
3372593fc2
commit
352c444ae6
@ -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,
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
}
|
@ -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,
|
||||
|
@ -35,6 +35,7 @@ profile pacman @{exec_path} {
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network netlink raw,
|
||||
network unix stream,
|
||||
|
||||
ptrace (read),
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user