add profiles

This commit is contained in:
valoq 2024-02-06 20:05:18 +01:00
parent 968da5518b
commit 9d1de3238b
No known key found for this signature in database
GPG key ID: 19F09A0FB865CBD8
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/imv-wayland
profile imv @{exec_path} {
include <abstractions/base>
include <abstractions/freedesktop.org>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-read>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/etc/imv_config r,
/usr/share/X11/xkb/** r,
/tmp/ r,
owner @{user_config_dirs}/imv/config
owner @{HOME}/ r,
owner @{HOME}/[^.]** r,
owner /mnt/** r,
owner /media/** r,
owner @{run}/user/*/imv-*.sock w,
include if exists <local/imv-wayland>
}

View file

@ -0,0 +1,35 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/zathura
profile zathura @{exec_path} {
include <abstractions/base>
include <abstractions/freedesktop.org>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-read>
include <abstractions/nameservice-strict>
include <abstractions/dconf-write>
@{exec_path} mr,
/usr/share/{,**} r,
/etc/xdg/{,**} r,
/etc/zathurarc r,
owner @{user_config_dirs}/zathura/** r,
owner @{user_share_dirs}/zathura/** rwk,
owner @{HOME}/ r,
owner @{HOME}/[^.]** r,
owner /mnt/** r,
owner /media/** r,
owner /tmp/gtkprint* rw,
include if exists <local/zathura>
}