From 16b2f40f1cd83ab37eb079b41a0f35bbcf877c93 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 19 Feb 2010 18:21:07 -0800 Subject: [PATCH] policy: add basic PolicyKit authorizations --- Makefile.am | 2 +- configure.ac | 1 + .../org.freedesktop.modem-manager.policy.in | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 policy/org.freedesktop.modem-manager.policy.in 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 @@ + + + + + + ModemManager + http://www.freedesktop.org/wiki/ModemManager + modem-manager + + + <_description>Unlock and retrieve mobile broadband device information + <_message>System policy prevents unlocking the device or requesting information from it. + + no + auth_self_keep + + + + + <_description>Add, modify, and delete mobile broadband contacts + <_message>System policy prevents adding, modifying, or deleteing this device's contacts. + + no + auth_self_keep + + + + + <_description>Send, save, modify, and delete text messages + <_message>System policy prevents sending or maniuplating this device's text messages. + + no + auth_self_keep + + + +