Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264505
b: refs/heads/master
c: 3ecf1b4
h: refs/heads/master
i:
  264503: 54fe854
v: v3
  • Loading branch information
David Howells authored and James Morris committed Aug 22, 2011
1 parent 6773e0c commit b73a5b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 995995378f996a8aa1cf4e4ddc0f79fbfd45496f
refs/heads/master: 3ecf1b4f347210e39b156177e5b8a26ff8d00279
14 changes: 12 additions & 2 deletions trunk/security/keys/process_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,22 @@ key_ref_t lookup_user_key(key_serial_t id, unsigned long lflags,
ret = install_user_keyrings();
if (ret < 0)
goto error;
ret = install_session_keyring(
cred->user->session_keyring);
if (lflags & KEY_LOOKUP_CREATE)
ret = join_session_keyring(NULL);
else
ret = install_session_keyring(
cred->user->session_keyring);

if (ret < 0)
goto error;
goto reget_creds;
} else if (cred->tgcred->session_keyring ==
cred->user->session_keyring &&
lflags & KEY_LOOKUP_CREATE) {
ret = join_session_keyring(NULL);
if (ret < 0)
goto error;
goto reget_creds;
}

rcu_read_lock();
Expand Down

0 comments on commit b73a5b7

Please sign in to comment.