apparmor.d/profiles/scrot
2021-04-01 16:17:47 +01:00

36 lines
794 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/scrot
profile scrot @{exec_path} {
include <abstractions/base>
include <abstractions/user-download-strict>
include <abstractions/deny-root-dir-access>
@{exec_path} mr,
# "mv" is needed to change the image dir
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/mv rix,
# The image dir
owner @{HOME}/*.png rw,
owner @{HOME}/.Xauthority r,
/dev/shm/#[0-9]*[0-9] rw,
owner @{HOME}/.icons/default/index.theme r,
/usr/share/icons/*/index.theme r,
/usr/share/icons/*/cursors/* r,
# file_inherit
owner @{HOME}/.xsession-errors w,
include if exists <local/scrot>
}