2021-04-03 12:03:57 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-03 12:03:57 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{bin}/czkawka_gui
|
2021-04-03 12:03:57 +02:00
|
|
|
profile czkawka-gui @{exec_path} {
|
|
|
|
include <abstractions/base>
|
2022-06-09 22:55:55 +02:00
|
|
|
include <abstractions/dconf-write>
|
2021-04-03 12:03:57 +02:00
|
|
|
include <abstractions/gtk>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/freedesktop.org>
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/xdg-open rCx -> open,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
|
|
|
# Dirs to scan for duplicates
|
|
|
|
#owner @{HOME}/** rw,
|
2021-04-19 16:20:32 +02:00
|
|
|
owner @{MOUNTS}/** rw,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
|
|
|
owner @{user_config_dirs}/czkawka/ rw,
|
|
|
|
owner @{user_config_dirs}/czkawka/** rw,
|
|
|
|
|
|
|
|
owner @{user_cache_dirs}/ rw,
|
|
|
|
owner @{user_cache_dirs}/czkawka/ rw,
|
|
|
|
owner @{user_cache_dirs}/czkawka/** rw,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
|
|
|
|
@{sys}/fs/cgroup/{,**} r,
|
|
|
|
|
|
|
|
profile open {
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/xdg-open>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/xdg-open mr,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
2024-02-11 15:34:46 +01:00
|
|
|
@{sh_path} rix,
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/{m,g,}awk rix,
|
|
|
|
@{bin}/readlink rix,
|
|
|
|
@{bin}/basename rix,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
|
|
|
owner @{HOME}/ r,
|
|
|
|
|
2021-04-18 20:00:15 +02:00
|
|
|
owner @{run}/user/@{uid}/ r,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
|
|
|
# Allowed apps to open
|
2023-07-09 15:23:22 +02:00
|
|
|
#@{lib}/firefox/firefox rPx,
|
|
|
|
@{bin}/smplayer rPx,
|
|
|
|
@{bin}/geany rPx,
|
|
|
|
@{bin}/viewnior rPUx,
|
2021-04-03 12:03:57 +02:00
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner @{HOME}/.xsession-errors w,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
include if exists <local/czkawka-gui>
|
|
|
|
}
|