1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-13 09:27:30 +01:00

Allow the mycroft user full NetworkManager privileges

This commit is contained in:
j1nx 2022-06-01 15:18:04 +02:00
parent feba69ba34
commit 4049feb6e4
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[main]
auth-polkit=true

View File

@ -0,0 +1,8 @@
/* give group 'network' rights to change settings */
/* taken from https://wiki.archlinux.org/index.php/NetworkManager#Set_up_PolicyKit_permissions */
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
return polkit.Result.YES;
}
});