From 4a68468fa6b9a86d0ad27b204dcdf3cb769c04a6 Mon Sep 17 00:00:00 2001 From: fredrik Date: Sun, 28 May 2006 04:00:38 +0000 Subject: [PATCH] chown the sessin keyring properly. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@615 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/main.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.11.0