Message ID | 87twbxojei.fsf@xmission.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 40a885239782..37f787716575 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -53,7 +53,7 @@ int install_user_keyrings(void) user_keyring_perm = (KEY_POS_ALL & ~KEY_POS_SETATTR) | KEY_USR_ALL; cred = current_cred(); user = cred->user; - uid = from_kuid(cred->user_ns, user->uid); + uid = from_kuid(&init_user_ns, user->uid); kenter("%p{%u}", user, uid);