add profiles for wayland screen capture tools
This commit is contained in:
parent
d57b867696
commit
bdd5c41d00
2 changed files with 44 additions and 0 deletions
21
apparmor.d/profiles-g-l/grim
Normal file
21
apparmor.d/profiles-g-l/grim
Normal 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
|
||||||
23
apparmor.d/profiles-s-z/slurp
Normal file
23
apparmor.d/profiles-s-z/slurp
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue