[systemd-commits] Makefile.am src/org.freedesktop.systemd1.policy src/org.freedesktop.systemd1.policy.in
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Mar 11 16:15:46 PST 2011
Makefile.am | 9 +++++--
src/org.freedesktop.systemd1.policy | 41 ---------------------------------
src/org.freedesktop.systemd1.policy.in | 41 +++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 43 deletions(-)
New commits:
commit 25705583af79130d2692de297ac971f3cf165619
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Mar 12 01:15:30 2011 +0100
polkit: autogenerate polkit policy with correct paths
diff --git a/Makefile.am b/Makefile.am
index 7120636..bb64857 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -339,7 +339,8 @@ EXTRA_DIST = \
units/fsck-root.service.in \
units/quotacheck.service.in \
systemd.pc.in \
- introspect.awk
+ introspect.awk \
+ src/org.freedesktop.systemd1.policy.in
if TARGET_FEDORA
dist_systemunit_DATA += \
@@ -386,7 +387,7 @@ dist_doc_DATA = \
pkgconfigdata_DATA = \
systemd.pc
-dist_polkitpolicy_DATA = \
+polkitpolicy_DATA = \
src/org.freedesktop.systemd1.policy
noinst_LTLIBRARIES = \
@@ -1069,6 +1070,7 @@ SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SED) -e 's, at rootlibexecdir\@,$(rootlibexecdir),g' \
-e 's, at rootbindir\@,$(rootbindir),g' \
+ -e 's, at bindir\@,$(bindir),g' \
-e 's, at SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
-e 's, at SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
-e 's, at SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
@@ -1090,6 +1092,9 @@ man/%: man/%.in Makefile
%.pc: %.pc.in Makefile
$(SED_PROCESS)
+src/%.policy: src/%.policy.in Makefile
+ $(SED_PROCESS)
+
M4_PROCESS_SYSTEM = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
diff --git a/src/org.freedesktop.systemd1.policy b/src/org.freedesktop.systemd1.policy
deleted file mode 100644
index a9958c2..0000000
--- a/src/org.freedesktop.systemd1.policy
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?> <!--*-nxml-*-->
-<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
-
-<!--
- This file is part of systemd.
-
- systemd is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
--->
-
-<policyconfig>
-
- <vendor>The systemd Project</vendor>
- <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
-
- <action id="org.freedesktop.systemd1.ReplyPassword">
- <description>Send passphrase back to system</description>
- <message>Authentication is required to send the entered passphrase back to the system.</message>
- <defaults>
- <allow_any>no</allow_any>
- <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
- </defaults>
- <annotate key="org.freedesktop.policykit.exec.path">/lib/systemd/systemd-reply-password</annotate>
- </action>
-
- <action id="org.freedesktop.systemd1.BusAccess">
- <description>Privileged system and service manager access</description>
- <message>Authentication is required to access the system and service manager.</message>
- <defaults>
- <allow_any>no</allow_any>
- <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
- </defaults>
- <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/systemd-stdio-bridge</annotate>
- </action>
-
-</policyconfig>
diff --git a/src/org.freedesktop.systemd1.policy.in b/src/org.freedesktop.systemd1.policy.in
new file mode 100644
index 0000000..b8b3547
--- /dev/null
+++ b/src/org.freedesktop.systemd1.policy.in
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?> <!--*-nxml-*-->
+<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+
+<!--
+ This file is part of systemd.
+
+ systemd is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+-->
+
+<policyconfig>
+
+ <vendor>The systemd Project</vendor>
+ <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
+
+ <action id="org.freedesktop.systemd1.ReplyPassword">
+ <description>Send passphrase back to system</description>
+ <message>Authentication is required to send the entered passphrase back to the system.</message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">@rootlibexecdir@/systemd-reply-password</annotate>
+ </action>
+
+ <action id="org.freedesktop.systemd1.BusAccess">
+ <description>Privileged system and service manager access</description>
+ <message>Authentication is required to access the system and service manager.</message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">@bindir@/systemd-stdio-bridge</annotate>
+ </action>
+
+</policyconfig>
More information about the systemd-commits
mailing list