2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}bin/i3lock-fancy
|
|
|
|
profile i3lock-fancy @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} r,
|
2020-12-09 10:30:52 +01:00
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
|
|
|
|
|
|
/{usr/,}bin/rm rix,
|
|
|
|
/{usr/,}bin/fc-match rix,
|
|
|
|
/{usr/,}bin/getopt rix,
|
|
|
|
/{usr/,}bin/mktemp rix,
|
|
|
|
/{usr/,}bin/gawk rix,
|
|
|
|
/{usr/,}bin/basename rix,
|
|
|
|
/{usr/,}bin/env rix,
|
|
|
|
|
|
|
|
/{usr/,}bin/i3lock rPx,
|
|
|
|
/{usr/,}bin/xrandr rPx,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}bin/convert-im6.q16 rCx -> imagemagic,
|
|
|
|
/{usr/,}bin/import-im6.q16 rCx -> imagemagic,
|
|
|
|
/{usr/,}bin/scrot rCx -> imagemagic,
|
|
|
|
|
|
|
|
owner /tmp/tmp.*.png rw,
|
|
|
|
owner /tmp/tmp.* rw,
|
|
|
|
owner /tmp/sh-thd.* rw,
|
|
|
|
|
|
|
|
/usr/share/i3lock-fancy/{,*} r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
|
|
|
|
|
|
|
|
profile imagemagic {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}bin/convert-im6.q16 mr,
|
|
|
|
/{usr/,}bin/import-im6.q16 mr,
|
|
|
|
/{usr/,}bin/scrot mr,
|
|
|
|
|
|
|
|
/usr/share/ImageMagick-[0-9]/*.xml r,
|
|
|
|
/etc/ImageMagick-[0-9]/*.xml r,
|
|
|
|
|
|
|
|
owner @{HOME}/.Xauthority r,
|
|
|
|
|
|
|
|
/usr/share/i3lock-fancy/**.png r,
|
|
|
|
|
|
|
|
# For gray scale (doesn't seem to be required). It produces files like /home/*/PIHFhJ .
|
|
|
|
deny owner @{HOME}/* rw,
|
|
|
|
|
|
|
|
owner /tmp/tmp.*.png rw,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/i3lock-fancy>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|