--- /dev/null
+<!-- if i am in /etc/dbus-1/system.d/ you should probably delete me immediately -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy context="default">
+ <allow own="org.freedesktop.hostname1"/>
+ <allow send_destination="org.freedesktop.hostname1"/>
+ <allow receive_sender="org.freedesktop.hostname1"/>
+ </policy>
+</busconfig>
--- /dev/null
+#!/bin/sh
+
+# sticks our config for hostnamed (which needs to use the system bus)
+# in place. and restarts dbus-daemon will be replaced by a more elegant,
+# not-hack in the future
+
+cp $(dirname "$(readlink -f "$0")")/hostnamed-dbus.conf /etc/dbus-1/system.d/hostnamed-dbus.conf
+/etc/rc.d/dbus_daemon reload >> /dev/null
--- /dev/null
+#!/bin/sh
+
+# unsticks our config for hostnamed (which needs to use the system bus)
+# and restarts dbus
+
+rm /etc/dbus-1/system.d/hostnamed-dbus.conf
+/etc/rc.d/dbus_daemon reload >> /dev/null
NULL,
NULL,
NULL);
- g_assert(reg_id > 0);
}
static void on_name_acquired(GDBusConnection *conn,
gpointer user_data) {
g_print("lost name %s, exiting...\n", name);
+ g_print("you might need to run hacks/punch_config.sh\n");
g_main_loop_quit(loop);
}