diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-01 20:22:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-01 20:22:33 +0000 |
commit | 5b7c114c09d07eecd00e6f7fb829563aae3597b9 (patch) | |
tree | db84e97d92f22634a22ce461f4ca00a294a21b24 /x11-misc/redshift/files | |
parent | ad1d34add08caaf8d68c79e40f0a61c733fd68b8 (diff) |
gentoo auto-resync : 01:01:2023 - 20:22:32
Diffstat (limited to 'x11-misc/redshift/files')
-rw-r--r-- | x11-misc/redshift/files/redshift-1.12-apparmor.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/x11-misc/redshift/files/redshift-1.12-apparmor.patch b/x11-misc/redshift/files/redshift-1.12-apparmor.patch new file mode 100644 index 000000000000..cb939994bf52 --- /dev/null +++ b/x11-misc/redshift/files/redshift-1.12-apparmor.patch @@ -0,0 +1,35 @@ +From c740a3a733a59782c26f2f90a073befec2e2324d Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Tue, 27 Dec 2022 01:27:35 +0100 +Subject: [PATCH] Fix AppArmor profile + +Inspired by: +- https://github.com/jonls/redshift/pull/864 +- https://gitlab.com/chinstrap/gammastep/-/blob/9db19f5ccfad20ab7b501daedcfd5ef137860dd2/data/apparmor/usr.bin.redshift.in +--- + data/apparmor/usr.bin.redshift.in | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/data/apparmor/usr.bin.redshift.in b/data/apparmor/usr.bin.redshift.in +index d6696db..9b71f0d 100644 +--- a/data/apparmor/usr.bin.redshift.in ++++ b/data/apparmor/usr.bin.redshift.in +@@ -35,8 +35,13 @@ + # Allow but log any other dbus activity + audit dbus bus=system, + +- owner @{HOME}/.config/redshift.conf r, ++ owner @{HOME}/.config/{,redshift/}redshift.conf r, ++ owner @{HOME}/.config/redshift/hooks/ r, ++ owner @{HOME}/.config/redshift/hooks/* Ux, ++ ++ # Required by getpwuid() call in config-ini.c. ++ /etc/passwd* r, + + # Site-specific additions and overrides. See local/README for details. +- #include <local/usr.bin.redshift> ++ #include if exists <local/usr.bin.redshift> + } +-- +2.39.0 + |