add profiles for wayland screen capture tools

This commit is contained in:
valoq 2025-08-06 14:03:31 +02:00 committed by Alex
parent eedbc2223c
commit aec7d41a25
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 valoq <valoq@mailbox.org>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/grim
profile grim @{exec_path} {
include <abstractions/base>
include <abstraction/user-write-strict>
@{exec_path} mr,
owner /dev/shm/grim-@{rand6} rw,
include if exists <local/grim>
}
# vim:syntax=apparmor

View file

@ -0,0 +1,23 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 valoq <valoq@mailbox.org>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/slurp
profile slurp @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/usr/share/icons/{,**} r,
# often used in combination with grim screen cature tool
owner /dev/shm/grim-@{rand6} rw,
include if exists <local/slurp>
}
# vim:syntax=apparmor