g_object_ref (server->priv->daemon),
GUMD_DBUS_SERVER_BUSTYPE_MSG_BUS);
g_object_weak_ref (G_OBJECT (server->priv->group_service),
- _on_group_interface_dispose, server);}
+ _on_group_interface_dispose, server);
+
+ DBG ("Before: real uid %d effective uid %d", getuid (), geteuid ());
+ if (seteuid (getuid()))
+ WARN ("seteuid() failed");
+ if (setegid (getgid()))
+ WARN ("setegid() failed");
+ DBG ("After: real gid %d effective gid %d", getgid (), getegid ());
+}
static void
_set_property (
{
#ifdef GUM_BUS_TYPE_P2P
+ DBG ("Before: real uid %d effective uid %d", getuid (), geteuid ());
+ if (seteuid (getuid()))
+ WARN ("seteuid() failed");
+ if (setegid (getgid()))
+ WARN ("setegid() failed");
+ DBG ("After: real gid %d effective gid %d", getgid (), getegid ());
_server = GUMD_DBUS_SERVER (gumd_dbus_server_p2p_new ());
#else
_server = GUMD_DBUS_SERVER (gumd_dbus_server_msg_bus_new ());
{NULL }
};
- DBG ("Before: real uid %d effective uid %d", getuid (), geteuid ());
- if (seteuid (getuid()))
- WARN ("seteuid() failed");
- if (setegid (getgid()))
- WARN ("setegid() failed");
- DBG ("After: real gid %d effective gid %d", getgid (), getegid ());
-
#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
#endif