Skip to content

Commit

Permalink
Define polkit rules for colord.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelaiw committed Sep 8, 2023
1 parent fa46cdd commit 925607c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ansible/02-allow-colord.rules
Original file line number Diff line number Diff line change
@@ -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;
}
});

0 comments on commit 925607c

Please sign in to comment.