35 lines
812 B
Text
35 lines
812 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/ristretto
|
|
profile ristretto @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/thumbnails-cache-read>
|
|
include <abstractions/trash-strict>
|
|
include <abstractions/user-read-strict>
|
|
include <abstractions/user-write-strict>
|
|
include <abstractions/xfce>
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{open_path} rPx -> child-open-help,
|
|
|
|
/usr/share/file/{,**} r,
|
|
|
|
/etc/magic r,
|
|
/etc/timezone r,
|
|
|
|
owner @{user_config_dirs}/ristretto/{,**} rw,
|
|
owner @{user_share_dirs}/ristretto/{,**} rw,
|
|
|
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
|
|
|
include if exists <local/ristretto>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|