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:
parent
feba69ba34
commit
4049feb6e4
@ -0,0 +1,2 @@
|
||||
[main]
|
||||
auth-polkit=true
|
@ -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;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user