chown the sessin keyring properly.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 28 May 2006 04:00:38 +0000 (04:00 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 28 May 2006 04:00:38 +0000 (04:00 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@615 959494ce-11ee-0310-bf91-de5d638817bd

daemon/main.c

index 2c6f08d..dddd8f1 100644 (file)
@@ -309,6 +309,7 @@ pid_t forksess(uid_t user, struct authhandle *auth, void (*ccbfunc)(pid_t, int,
        errno = 0;
 #ifdef HAVE_KEYUTILS
        keyctl_join_session_keyring(NULL);
+       keyctl_chown(KEY_SPEC_SESSION_KEYRING, pwent->pw_uid, pwent->pw_gid);
 #endif
        if((authopensess(auth)) != AUTH_SUCCESS)
        {