mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
parent
8ba25a3f6e
commit
1f16025c10
8 changed files with 29 additions and 18 deletions
|
@ -9,9 +9,10 @@ include <tunables/global>
|
|||
@{exec_path} = @{libexec}/geoclue
|
||||
profile geoclue @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/dbus-strict>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/p11-kit>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
|
|
@ -87,10 +87,12 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
|||
/usr/share/language-tools/language2locale rix,
|
||||
|
||||
/snap/*/[0-9]*/**.png r,
|
||||
/usr/share/*ubuntu/applications/{,*} r,
|
||||
/usr/share/backgrounds/{,**} r,
|
||||
/usr/share/desktop-base/**.{xml,png,svg} r,
|
||||
/usr/share/cups/data/testprint r,
|
||||
/usr/share/desktop-base/**.{xml,png,svg} r,
|
||||
/usr/share/egl/{,**} r,
|
||||
/usr/share/firefox{,-esr}/browser/chrome/icons/{,**} r,
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/gnome-background-properties/{,**} r,
|
||||
/usr/share/gnome-bluetooth{-*,}/{,**} r,
|
||||
|
@ -98,11 +100,10 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
|||
/usr/share/gnome-control-center/{,**} r,
|
||||
/usr/share/gnome-shell/search-providers/{,**} r,
|
||||
/usr/share/gnome/gnome-version.xml r,
|
||||
/usr/share/firefox{,-esr}/browser/chrome/icons/{,**} r,
|
||||
/usr/share/libdrm/*.ids r,
|
||||
/usr/share/mime/{,**} r,
|
||||
/usr/share/pipewire/client.conf r,
|
||||
/usr/share/thumbnailers/{,*} r,
|
||||
/usr/share/*ubuntu/applications/{,*} r,
|
||||
/usr/share/xml/iso-codes/iso_[0-9]*-[0-9]*.xml r,
|
||||
/usr/share/zoneinfo/{,**} r,
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@ profile grub-mount @{exec_path} {
|
|||
|
||||
capability sys_admin,
|
||||
|
||||
mount fstype=fuse.grub-mount -> /var/lib/os-prober/mount/,
|
||||
umount /var/lib/os-prober/mount/,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/ r,
|
||||
|
|
|
@ -45,7 +45,7 @@ profile nm-dispatcher @{exec_path} flags=(attach_disconnected) {
|
|||
/etc/NetworkManager/dispatcher.d/** rix,
|
||||
|
||||
@{run}/systemd/notify rw,
|
||||
@{run}/tlp/* rw,
|
||||
@{run}/tlp/{,*} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
|
|
|
@ -88,9 +88,9 @@ profile systemd-logind @{exec_path} flags=(attach_disconnected,complain) {
|
|||
@{run}/udev/data/c10:[0-9]* r,
|
||||
@{run}/udev/data/c116:[0-9]* r, # for ALSA
|
||||
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
|
||||
@{run}/udev/data/c14:[0-9]* r,
|
||||
@{run}/udev/data/c21:[0-9]* r,
|
||||
@{run}/udev/data/c226:[0-9]* r, # for /dev/dri/card*
|
||||
@{run}/udev/data/c21:[0-9]* r,
|
||||
@{run}/udev/data/c23[0-9]:[0-9]* r,
|
||||
@{run}/udev/data/c24[0-9]:[0-9]* r,
|
||||
@{run}/udev/data/c29:[0-9]* r,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
@ -18,21 +19,12 @@ profile btrfs @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{run}/blkid/blkid.tab{,-*} rw,
|
||||
@{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
||||
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
@{PROC}/partitions r,
|
||||
|
||||
# For fsck of the btrfs filesystem directly from gparted
|
||||
owner /tmp/gparted-*/ rw,
|
||||
|
||||
# For scrub
|
||||
/var/lib/btrfs/ rw,
|
||||
/var/lib/btrfs/scrub.progress.@{uuid} rw,
|
||||
/var/lib/btrfs/scrub.status.@{uuid}{,_tmp} rwk,
|
||||
|
||||
# Saved metadata
|
||||
/ r,
|
||||
/boot/ r,
|
||||
@{MOUNTS}/ r,
|
||||
@{MOUNTS}/ext2_saved/ rw,
|
||||
@{MOUNTS}/ext2_saved/image rw,
|
||||
|
@ -46,6 +38,15 @@ profile btrfs @{exec_path} {
|
|||
owner @{HOME}/**.{ISO,IMG,BIN,MDF,NRG} rwk,
|
||||
owner @{MOUNTS}/**.{ISO,IMG,BIN,MDF,NRG} rwk,
|
||||
|
||||
# For fsck of the btrfs filesystem directly from gparted
|
||||
owner /tmp/gparted-*/ rw,
|
||||
|
||||
@{run}/blkid/blkid.tab{,-*} rw,
|
||||
@{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
||||
|
||||
@{PROC}/partitions r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
/dev/btrfs-control rw,
|
||||
|
||||
include if exists <local/btrfs>
|
||||
|
|
|
@ -81,6 +81,7 @@ profile fwupd @{exec_path} flags=(complain,attach_disconnected) {
|
|||
/var/cache/fwupd/{,**} rw,
|
||||
/var/lib/fwupd/{,**} rw,
|
||||
/var/lib/fwupd/pending.db rwk,
|
||||
/var/tmp/etilqs_@{hex} rw,
|
||||
|
||||
/boot/{,**} r,
|
||||
/boot/EFI/*/.goutputstream-* rw,
|
||||
|
|
|
@ -45,7 +45,11 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/var/lib/os-prober/{,**} rw,
|
||||
|
||||
@{MOUNTS}/ r,
|
||||
/ r,
|
||||
/boot/ r,
|
||||
/boot/EFI/ r,
|
||||
/boot/EFI/*/ r,
|
||||
|
||||
owner /tmp/os-prober.*/{,**} rw,
|
||||
|
||||
|
|
Loading…
Reference in a new issue