diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2013-06-18 10:57:37 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-06-20 12:28:00 +0200 |
commit | 2ae8dbddf8385850a1526289b256c545736d4d8b (patch) | |
tree | a1eeef15e88b0fbafcd06c7d1d23b349e4b3f8c4 /meta-oe/recipes-extended/polkit/files | |
parent | 79b7cbaaee97d15b5573f472aea99a45d449d5fe (diff) | |
download | meta-openembedded-2ae8dbddf8385850a1526289b256c545736d4d8b.tar.gz |
polkit-group-rule-network: initial add
add user-group 'network' allowing memebers to change networkmanager settings
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-oe/recipes-extended/polkit/files')
-rw-r--r-- | meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules b/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules new file mode 100644 index 000000000..4b50cf881 --- /dev/null +++ b/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.NetworkManager.rules | |||
@@ -0,0 +1,8 @@ | |||
1 | /* give group 'network' rights to change settings */ | ||
2 | /* taken from https://wiki.archlinux.org/index.php/NetworkManager#Set_up_PolicyKit_permissions */ | ||
3 | |||
4 | polkit.addRule(function(action, subject) { | ||
5 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) { | ||
6 | return polkit.Result.YES; | ||
7 | } | ||
8 | }); | ||