add profiles
This commit is contained in:
parent
968da5518b
commit
9d1de3238b
2 changed files with 69 additions and 0 deletions
34
apparmor.d/groups/apps/imv-wayland
Normal file
34
apparmor.d/groups/apps/imv-wayland
Normal 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>
|
||||
}
|
||||
35
apparmor.d/groups/apps/zathura
Normal file
35
apparmor.d/groups/apps/zathura
Normal 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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue