summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules
blob: dd4b6940d994d459036f64bff2a5e8a18154c6d2 (plain)
1
2
3
4
5
6
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;
    }
});