networks: Add polkit rules for network management

Allow Plinth to manage network connections even when running as 'plinth'
user and not root user.  This is done by adding polkit rules that
Network Manager checks

- Add new style Javascript based rules file for newer versions of
  polkit (>105). This is not fuly tested.

- Add old style .pkla file for older versions of polkit (<=105).
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2016-09-09 19:47:41 -04:00
1 parent 38d99ff5ff
commit 5a04d8057e
4 files changed
+36 -1

No files matched your search

@@ -0,0 +1,4 @@
[Allow Plinth to manage NetworkManager connections]
Identity=unix-user:plinth
Action=org.freedesktop.NetworkManager.*
ResultAny=yes