4 This script copies the original system.conf from the dbus
5 distribution, but sets paths from $serviceDirectories parameter
6 and suid helper from $suidHelper parameter.
9 <xsl:stylesheet version=
"1.0"
10 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
11 xmlns:
str=
"http://exslt.org/strings"
12 extension-element-prefixes=
"str"
15 <xsl:output method='xml'
encoding=
"UTF-8" doctype-system=
"busconfig.dtd" />
17 <xsl:param name=
"serviceDirectories" />
18 <xsl:param name=
"apparmor" />
20 <xsl:template match=
"/busconfig">
22 <!-- We leave <standard_session_servicedirs/> because it includes XDG dirs and therefore user Nix profile. -->
23 <xsl:copy-of select=
"child::node()[name() != 'include' and name() != 'servicedir' and name() != 'includedir']" />
25 <!-- configure AppArmor -->
26 <apparmor mode=
"{$apparmor}"/>
28 <xsl:for-each select=
"str:tokenize($serviceDirectories)">
29 <servicedir><xsl:value-of select=
"." />/share/dbus-
1/services
</servicedir>
30 <includedir><xsl:value-of select=
"." />/etc/dbus-
1/session.d
</includedir>
31 <includedir><xsl:value-of select=
"." />/share/dbus-
1/session.d
</includedir>