mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-13 07:47:27 +01:00
43 lines
1 KiB
Text
43 lines
1 KiB
Text
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License published by the Free Software Foundation.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
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>
|
|
}
|