feat(profile): add udev child & low-memory profiles.

This commit is contained in:
Alexandre Pujol 2023-11-27 19:32:50 +00:00
parent cdfa76924b
commit fade97486d
Failed to generate hash of commit
3 changed files with 46 additions and 0 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} = @{lib}/low-memory-monitor
profile low-memory-monitor @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
capability ipc_lock,
@{exec_path} mr,
owner @{PROC}/pressure/memory rw,
include if exists <local/low-memory-monitor>
}

View file

@ -0,0 +1,21 @@
# 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} = @{lib}/udev/dmi_memory_id
profile udev-dmi-memory-id @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/etc/udev/udev.conf r,
@{sys}/firmware/dmi/tables/DMI r,
@{sys}/firmware/dmi/tables/smbios_entry_point r,
include if exists <local/udev-dmi-memory-id>
}

View file

@ -128,6 +128,7 @@ gnome-disk-image-mounter complain
gnome-disks complain
gnome-extension-gsconnect complain
gnome-extension-manager complain
gnome-initial-setup complain
gnome-music complain
gnome-photos-thumbnailer complain
gnome-remote-desktop-daemon complain
@ -173,6 +174,7 @@ hostnamectl complain
ibus-engine-table complain
ibus-memconf complain
im-launch complain
init-exim4 complain
install-info complain
irqbalance attach_disconnected,complain
iwctl complain
@ -215,6 +217,7 @@ locale-gen complain
localectl complain
login attach_disconnected,complain
loginctl complain
low-memory-monitor attach_disconnected,complain
lvm attach_disconnected,complain
lvmconfig complain
lvmdump complain
@ -242,6 +245,7 @@ org.gnome.NautilusPreviewer complain
os-prober attach_disconnected,complain
package-data-downloader complain
packagekitd attach_disconnected,complain
pam_kwallet_init complain
pass-import complain
passim complain
passimd attach_disconnected,complain
@ -361,6 +365,7 @@ thunderbird complain
thunderbird-glxtest complain
thunderbird-vaapitest complain
transmission-gtk complain
udev-dmi-memory-id complain
udisksctl complain
udisksd attach_disconnected,complain
umount complain