diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-17 05:36:27 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-17 05:36:27 +0000 |
commit | 897123ff74e47894a45a7e85ecf145b2f803b02e (patch) | |
tree | 083a711f3ccb26c32ec88edb2757588b4e4155e7 /xrdp.polkit | |
parent | ff2c4e9c1ee1ed00cc50204442a1a4c31dc45b49 (diff) |
automatic import of xrdpopeneuler24.03_LTS
Diffstat (limited to 'xrdp.polkit')
-rw-r--r-- | xrdp.polkit | 13 |
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; +}); |