git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@613
959494ce-11ee-0310-bf91-
de5d638817bd
#include "sysevents.h"
#include "auth.h"
+#ifdef HAVE_KEYUTILS
+#include <keyutils.h>
+#endif
+
struct module *modchain = NULL;
static struct timer *timers = NULL;
static struct child *children = NULL;
setpgrp();
signal(SIGHUP, SIG_IGN);
errno = 0;
+#ifdef HAVE_KEYUTILS
+ keyctl_join_session_keyring(NULL);
+#endif
if((authopensess(auth)) != AUTH_SUCCESS)
{
flog(LOG_WARNING, "could not open session for user %s: %s", pwent->pw_name, (errno == 0)?"Unknown error - should be logged above":strerror(errno));