summaryrefslogtreecommitdiff
path: root/xrdp.polkit
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-05-15 15:46:14 +0000
committerCoprDistGit <infra@openeuler.org>2024-05-15 15:46:14 +0000
commitf0dc10d63699e4d0b241202b32945f976e1b551f (patch)
tree083a711f3ccb26c32ec88edb2757588b4e4155e7 /xrdp.polkit
parentff2c4e9c1ee1ed00cc50204442a1a4c31dc45b49 (diff)
automatic import of xrdpopeneuler23.09
Diffstat (limited to 'xrdp.polkit')
-rw-r--r--xrdp.polkit13
1 files changed, 13 insertions, 0 deletions
diff --git a/xrdp.polkit b/xrdp.polkit
new file mode 100644
index 0000000..b4c987e
--- /dev/null
+++ b/xrdp.polkit
@@ -0,0 +1,13 @@
+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" ||
+ action.id == "org.freedesktop.packagekit.system-sources-refresh") &&
+ subject.active == true) {
+ return polkit.Result.YES;
+ }
+ return polkit.Result.NOT_HANDLED;
+});