mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-04-19 04:47:45 +02: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…
x
Reference in New Issue
Block a user