diff options
Diffstat (limited to 'meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules')
-rw-r--r-- | meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules b/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules new file mode 100644 index 000000000..5fa34fbd2 --- /dev/null +++ b/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules @@ -0,0 +1,7 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.systemd1.manage-units" && + action.lookup("unit").indexOf("agl-app@") == 0 && + subject.user == "agl-driver") { + return polkit.Result.YES; + } +}); |