Set cred->user_ns in key_replace_session_keyring
[linux-2.6.git] / security / keys / process_keys.c
index 6c0480d..a3063eb 100644 (file)
@@ -847,6 +847,7 @@ void key_replace_session_keyring(void)
        new-> sgid      = old-> sgid;
        new->fsgid      = old->fsgid;
        new->user       = get_uid(old->user);
+       new->user_ns    = new->user->user_ns;
        new->group_info = get_group_info(old->group_info);
 
        new->securebits = old->securebits;