diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2022-07-05 19:10:19 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-07-13 15:26:46 +0000 |
commit | 9ee284eb961ca51d8dc1f2822b2bf30de9d940da (patch) | |
tree | d88497901969737ca3ad25449d8f811a2e1a5ec0 /meta-app-framework/recipes-config/polkit-rule-agl-app/files | |
parent | 48f68e84809ca5050b6e387109e2f3077c4ef964 (diff) |
polkit: add rule to allow agl-driver to control agl-app@ systemd services
Bug-AGL: SPEC-4466
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Change-Id: I8007aacc12f8b6bdfbca660c994d321ef1b5eca7
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27751
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-by: Marius Vlad <marius.vlad@collabora.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-app-framework/recipes-config/polkit-rule-agl-app/files')
-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; + } +}); |