This commit is contained in:
Roman Beslik 2025-04-25 16:24:14 +03:00
parent 7c46ed2dd1
commit 9c9877a152

View file

@ -0,0 +1,59 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Roman Beslik <me@beroal.in.ua>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/cheese
profile cheese @{exec_path} {
include <abstractions/audio-client>
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/fonts>
include <abstractions/freedesktop.org>
include <abstractions/graphics>
include <abstractions/gstreamer>
include <abstractions/gtk>
include <abstractions/nameservice-strict>
include <abstractions/thumbnails-cache-write>
network netlink raw,
@{exec_path} mr,
@{bin}/bwrap Px -> gnome-desktop-thumbnailers,
@{open_path} rPx -> child-open,
@{system_share_dirs}/X11/xkb/{,**} r,
@{system_share_dirs}/applications/{,*.desktop} r,
@{system_share_dirs}/gnome-video-effects/{,*.effect} r,
@{system_share_dirs}/icons/{,**} r,
@{system_share_dirs}/ladspa/rdf/{,**} r,
@{system_share_dirs}/thumbnailers/{,*.thumbnailer} r,
/etc/machine-id r,
owner @{HOME}/ r, # file save dialog
owner @{user_pictures_dirs}/{,**} rw,
owner @{user_videos_dirs}/{,**} rw,
owner @{user_cache_dirs}/gnome-desktop-thumbnailer/gstreamer-1.0/ r,
owner /dev/shm/wlroots-* r,
@{run}/udev/data/c236:0 r,
owner @{tmp}/flatpak-seccomp-@{rand6} rw,
owner @{tmp}/gnome-desktop-thumbnailer-@{rand6}/{,**} rw,
@{sys}/devices/virtual/dmi/id/{bios_vendor,board_vendor,product_name,sys_vendor} r,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
/dev/media@{int} rw,
/dev/video@{int} rw,
include if exists <local/cheese>
}
# vim:syntax=apparmor