mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-26 12:58:18 +01:00
d701e39939
Co-authored-by: Mikhail Morfikov <mmorfikov@gmail.com> Signed-off-by: Alexandre Pujol <alexandre@pujol.io>
58 lines
1.3 KiB
Text
58 lines
1.3 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/jgmenu{,_run}
|
|
profile jgmenu @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/gtk>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/app-launcher-user>
|
|
|
|
@{exec_path} mrix,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/zsh rix,
|
|
/{usr/,}bin/mkdir rix,
|
|
/{usr/,}bin/find rix,
|
|
/{usr/,}bin/wc rix,
|
|
/{usr/,}bin/cat rix,
|
|
|
|
/{usr/,}lib/jgmenu/jgmenu-* rix,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/.jgmenu-lockfile rwk,
|
|
|
|
owner @{user_config_dirs}/tint2/* r,
|
|
|
|
owner @{user_config_dirs}/jgmenu/ rw,
|
|
owner @{user_config_dirs}/jgmenu/** rw,
|
|
|
|
owner @{user_cache_dirs}/ rw,
|
|
owner @{user_cache_dirs}/jgmenu/ rw,
|
|
owner @{user_cache_dirs}/jgmenu/** rw,
|
|
|
|
owner @{HOME}/.Xauthority r,
|
|
|
|
owner @{PROC}/@{pid}/loginuid r,
|
|
|
|
# For zsh shell
|
|
/etc/zsh/zshenv r,
|
|
|
|
# For missing apps icon and desktop files
|
|
/usr/share/**.png r,
|
|
/usr/share/**.desktop r,
|
|
|
|
# file_inherit
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/jgmenu>
|
|
}
|