2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2015 Cameron Norman <camerontnorman@gmail.com>
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2017-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/redshift
|
|
|
|
profile redshift @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
2020-12-18 11:12:55 +01:00
|
|
|
include <abstractions/wayland>
|
2021-01-10 16:35:07 +01:00
|
|
|
include <abstractions/nameservice-strict>
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/deny-root-dir-access>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
dbus send
|
|
|
|
bus=system
|
|
|
|
path=/org/freedesktop/GeoClue2/Client/[0-9]*[0-9],
|
|
|
|
|
|
|
|
dbus receive
|
|
|
|
bus=system
|
|
|
|
path=/org/freedesktop/GeoClue2/Manager,
|
|
|
|
|
|
|
|
# Allow but log any other dbus activity
|
|
|
|
audit dbus bus=system,
|
|
|
|
|
|
|
|
# Redshift config files
|
|
|
|
owner @{HOME}/.config/redshift/{,**} rw,
|
|
|
|
owner @{HOME}/.config/redshift.conf rw,
|
|
|
|
|
2020-12-18 11:12:55 +01:00
|
|
|
owner @{run}/user/[0-9]*/redshift-shared-* rw,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
owner @{HOME}/.Xauthority r,
|
|
|
|
owner /tmp/xauth-[0-9]*-_[0-9] r,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/redshift>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|