diff options
author | Dan Williams <dcbw@redhat.com> | 2010-02-19 18:21:07 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-02-19 18:21:07 -0800 |
commit | 16b2f40f1cd83ab37eb079b41a0f35bbcf877c93 (patch) | |
tree | e1fee2e7da5ad809885a58d01cb037be8bb83a04 | |
parent | dcedb5273c059476813dc68d0617210d0835710b (diff) |
policy: add basic PolicyKit authorizations
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | policy/org.freedesktop.modem-manager.policy.in | 39 |
3 files changed, 41 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index f271b9cb..860956bf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,7 @@ all: $(GENERATED_FILES) CLEANFILES = $(GENERATED_FILES) endif -SUBDIRS = marshallers src plugins introspection po test +SUBDIRS = marshallers src plugins introspection po policy test dbusservicedir = $(DBUS_SYS_DIR) dbusservice_DATA = org.freedesktop.ModemManager.conf diff --git a/configure.ac b/configure.ac index ae37fdcd..db885dc0 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,7 @@ plugins/Makefile test/Makefile introspection/Makefile po/Makefile.in +policy/Makefile ]) AC_OUTPUT diff --git a/policy/org.freedesktop.modem-manager.policy.in b/policy/org.freedesktop.modem-manager.policy.in new file mode 100644 index 00000000..1c6f214c --- /dev/null +++ b/policy/org.freedesktop.modem-manager.policy.in @@ -0,0 +1,39 @@ +<?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>ModemManager</vendor> + <vendor_url>http://www.freedesktop.org/wiki/ModemManager</vendor_url> + <icon_name>modem-manager</icon_name> + + <action id="org.freedesktop.ModemManager.Device"> + <_description>Unlock and retrieve mobile broadband device information</_description> + <_message>System policy prevents unlocking the device or requesting information from it.</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_self_keep</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.ModemManager.Contacts"> + <_description>Add, modify, and delete mobile broadband contacts</_description> + <_message>System policy prevents adding, modifying, or deleteing this device's contacts.</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_self_keep</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.ModemManager.SMS"> + <_description>Send, save, modify, and delete text messages</_description> + <_message>System policy prevents sending or maniuplating this device's text messages.</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_self_keep</allow_active> + </defaults> + </action> + +</policyconfig> |