6 serviceDirectories ? [ ],
7 suidHelper ? "/var/setuid-wrappers/dbus-daemon-launch-helper",
8 apparmor ? "disabled", # one of enabled, disabled, required
12 DBus has two configuration parsers -- normal and "trivial", which is used
13 for suid helper. Unfortunately the latter doesn't support <include>
14 directive. That means that we can't just place our configuration to
15 *-local.conf -- it needs to be in the main configuration file.
19 inherit serviceDirectories suidHelper apparmor;
20 preferLocalBuild = true;
21 allowSubstitutes = false;
36 --stringparam serviceDirectories "$serviceDirectories" \
37 --stringparam suidHelper "$suidHelper" \
38 --stringparam apparmor "$apparmor" \
39 ${./make-system-conf.xsl} ${dbus}/share/dbus-1/system.conf \
42 --stringparam serviceDirectories "$serviceDirectories" \
43 --stringparam apparmor "$apparmor" \
44 ${./make-session-conf.xsl} ${dbus}/share/dbus-1/session.conf \
47 # check if files are empty or only contain space characters
48 grep -q '[^[:space:]]' "$out/system.conf" || (echo "\"$out/system.conf\" was generated incorrectly and is empty, try building again." && exit 1)
49 grep -q '[^[:space:]]' "$out/session.conf" || (echo "\"$out/session.conf\" was generated incorrectly and is empty, try building again." && exit 1)