diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-13 07:18:47 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-13 07:18:47 +0200 |
commit | 3b967d36b32d6bfb156e82ac116c7881f69febd4 (patch) | |
tree | a393f4dae1bcdddb052387e511de4a0ccf542a62 | |
parent | 50553d0bc4e0ad0a882440b816c64dfe6d0fdb71 (diff) | |
download | connman-3b967d36b32d6bfb156e82ac116c7881f69febd4.tar.gz connman-3b967d36b32d6bfb156e82ac116c7881f69febd4.tar.bz2 connman-3b967d36b32d6bfb156e82ac116c7881f69febd4.zip |
Add PolicyKit policy configuration file
-rw-r--r-- | plugins/Makefile.am | 6 | ||||
-rw-r--r-- | plugins/connman.policy | 20 |
2 files changed, 26 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 03ac0f3d..9667d26f 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -37,6 +37,10 @@ plugin_LTLIBRARIES += polkit.la polkit_la_SOURCES = polkit.c polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@ polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@ + +policydir = $(datadir)/PolicyKit/policy + +policy_DATA = connman.policy endif AM_LDFLAGS = -no-undefined -module -avoid-version \ @@ -54,4 +58,6 @@ AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ INCLUDES = -I$(top_builddir)/include +EXTRA_DIST = $(policy_DATA) + MAINTAINERCLEANFILES = Makefile.in diff --git a/plugins/connman.policy b/plugins/connman.policy new file mode 100644 index 00000000..2dcc37c7 --- /dev/null +++ b/plugins/connman.policy @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC + "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" + "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> + +<policyconfig> + + <vendor>Connection Manager</vendor> + <icon_name>stock_internet</icon_name> + + <action id="org.moblin.connman.modify"> + <description>Modify configuration</description> + <message>Policy prevents modification of settings</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin_keep_always</allow_active> + </defaults> + </action> + +</policyconfig> |