summaryrefslogtreecommitdiff
path: root/xrdp.polkit
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-04-09 15:53:08 +0000
committerCoprDistGit <infra@openeuler.org>2025-04-09 15:53:08 +0000
commit7e7f65a92849ed42ad806bf1b60770b0d32d05b8 (patch)
tree083a711f3ccb26c32ec88edb2757588b4e4155e7 /xrdp.polkit
parent8bae48a05e187f03e6ee9086566b4190adcfc165 (diff)
automatic import of xrdpopeneuler25.03
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;
+});