mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Merge branch 'main' of github.com:roddhjav/apparmor.d
* 'main' of github.com:roddhjav/apparmor.d: Add Profiles for imv and zathura (#291)
This commit is contained in:
commit
7bd500b979
29
apparmor.d/groups/apps/imv-wayland
Normal file
29
apparmor.d/groups/apps/imv-wayland
Normal file
@ -0,0 +1,29 @@
|
||||
# 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>
|
||||
include <abstractions/user-read>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/imv_config r,
|
||||
/usr/share/X11/xkb/** r,
|
||||
/tmp/ r,
|
||||
|
||||
owner @{user_config_dirs}/imv/config r,
|
||||
|
||||
owner @{run}/user/@{uid}/imv-*.sock w,
|
||||
|
||||
include if exists <local/imv-wayland>
|
||||
}
|
32
apparmor.d/groups/apps/zathura
Normal file
32
apparmor.d/groups/apps/zathura
Normal file
@ -0,0 +1,32 @@
|
||||
# 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>
|
||||
include <abstractions/gtk>
|
||||
include <abstractions/user-read>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/file/{,**} r,
|
||||
/usr/share/X11/xkb/{,**} 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>
|
||||
}
|
Loading…
Reference in New Issue
Block a user