diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-06 15:42:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-06 15:42:49 +0000 |
commit | 60eb9cc7cb9445f5432ee333d181eece99d5ca89 (patch) | |
tree | 083a711f3ccb26c32ec88edb2757588b4e4155e7 /xrdp.polkit | |
parent | 0413d46efa73eddd263ec5fe93bc2a5692039b24 (diff) |
automatic import of xrdpopeneuler24.09
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; +}); |