From 925607c6689fcb2248bdc4c95920a954ce90037a Mon Sep 17 00:00:00 2001 From: jelaiw <14236583+jelaiw@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:21:15 +0000 Subject: [PATCH] Define polkit rules for colord. --- ansible/02-allow-colord.rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ansible/02-allow-colord.rules diff --git a/ansible/02-allow-colord.rules b/ansible/02-allow-colord.rules new file mode 100644 index 0000000..f713871 --- /dev/null +++ b/ansible/02-allow-colord.rules @@ -0,0 +1,12 @@ +polkit.addRule(function(action, subject) { +if ((action.id == "org.freedesktop.color-manager.create-device" || + action.id == "org.freedesktop.color-manager.create-profile" || + action.id == "org.freedesktop.color-manager.delete-device" || + action.id == "org.freedesktop.color-manager.delete-profile" || + action.id == "org.freedesktop.color-manager.modify-device" || + action.id == "org.freedesktop.color-manager.modify-profile") && + subject.isInGroup("{kali}")) { + return polkit.Result.YES; + } +}); +