thinlinc-server: Add missing policy file

This commit is contained in:
Timo Makinen 2020-11-14 13:48:05 +00:00
parent 019dd4978e
commit 277630dcf9

View file

@ -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;
}
}
});