add multiple profiles (#341)

* add multiple profiles
This commit is contained in:
valoq 2024-05-31 12:47:01 +02:00 committed by GitHub
parent 45ae8f5d27
commit bb772167f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 94 additions and 9 deletions

View file

@ -1,29 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# 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/desktop>
include <abstractions/fontconfig-cache-read>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
include <abstractions/user-read-strict>
@{exec_path} mr,
/etc/imv_config r,
/tmp/ r,
owner @{user_config_dirs}/imv/config r,
owner @{run}/user/@{uid}/imv-*.sock w,
include if exists <local/imv-wayland>
}

View file

@ -1,31 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# 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/dconf-write>
include <abstractions/desktop>
include <abstractions/fontconfig-cache-read>
include <abstractions/nameservice-strict>
include <abstractions/user-read-strict>
@{exec_path} mr,
/usr/share/file/{,**} r,
/etc/xdg/{,**} r,
/etc/zathurarc r,
owner @{user_config_dirs}/zathura/** r,
owner @{user_share_dirs}/zathura/** rwk,
owner @{tmp}/gtkprint* rw,
include if exists <local/zathura>
}