[nanny: 2/15] Add policy-kit policy
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny: 2/15] Add policy-kit policy
- Date: Sun, 14 Mar 2010 11:30:12 +0000 (UTC)
commit c60a8ca205b33dd74f9b000ffad42b9166ff65cb
Author: Roberto Majadas <roberto majadas openshine com>
Date: Sat Mar 13 15:34:17 2010 +0100
Add policy-kit policy
daemon/data/Makefile.am | 7 +++++++
daemon/data/org.gnome.nanny.policy.in | 19 +++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/daemon/data/Makefile.am b/daemon/data/Makefile.am
index adb479c..1f0a65e 100644
--- a/daemon/data/Makefile.am
+++ b/daemon/data/Makefile.am
@@ -1 +1,8 @@
SUBDIRS=applists dbus init.d
+
+policy_in_files = org.gnome.nanny.policy.in
+policydir = $(POLKIT_POLICY_DIR)
+policy_DATA = $(policy_in_files:.policy.in=.policy)
+ INTLTOOL_POLICY_RULE@
+
+EXTRA_DIST= org.gnome.nanny.policy.in
diff --git a/daemon/data/org.gnome.nanny.policy.in b/daemon/data/org.gnome.nanny.policy.in
new file mode 100644
index 0000000..db1d97f
--- /dev/null
+++ b/daemon/data/org.gnome.nanny.policy.in
@@ -0,0 +1,19 @@
+<?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>The Nanny Project</vendor>
+ <vendor_url>http://project.gnome.org/nanny</vendor_url>
+
+ <action id="org.gnome.nanny.admin">
+ <_description>Manage your parental control settings</_description>
+ <_message>You need to authenticate to modify the parental control configuration</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ </action>
+</policyconfig>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]