From: fredrik Date: Sun, 28 May 2006 04:00:38 +0000 (+0000) Subject: chown the sessin keyring properly. X-Git-Tag: 0.1~31 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=4a68468fa6b9a86d0ad27b204dcdf3cb769c04a6 chown the sessin keyring properly. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@615 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/main.c b/daemon/main.c index 2c6f08d..dddd8f1 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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) {