From 277630dcf9d29660907f52ae0ade103876b9c61b Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sat, 14 Nov 2020 13:48:05 +0000 Subject: [PATCH] thinlinc-server: Add missing policy file --- .../files/40-thinlinc-no-auth-dialogs.rules | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/thinlinc-server/files/40-thinlinc-no-auth-dialogs.rules diff --git a/roles/thinlinc-server/files/40-thinlinc-no-auth-dialogs.rules b/roles/thinlinc-server/files/40-thinlinc-no-auth-dialogs.rules new file mode 100644 index 0000000..4a5d7d2 --- /dev/null +++ b/roles/thinlinc-server/files/40-thinlinc-no-auth-dialogs.rules @@ -0,0 +1,21 @@ +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") { + if (!subject.local) { + return polkit.Result.NO; + } + } +}); + +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.packagekit.system-network-proxy-configure" || + action.id == "org.freedesktop.packagekit.system-sources-refresh") { + if (!subject.local) { + return polkit.Result.NO; + } + } +});