Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118641
b: refs/heads/master
c: 1f8f5cf
h: refs/heads/master
i:
  118639: c06db39
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Nov 10, 2008
1 parent 9331029 commit 73e9cea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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: 3ad4f597058301c97f362e500a32f63f5c950a45
refs/heads/master: 1f8f5cf6e4f038552a3e47b66085452c08556d71
1 change: 1 addition & 0 deletions trunk/security/keys/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ extern key_ref_t search_process_keyrings(struct key_type *type,

extern struct key *find_keyring_by_name(const char *name, bool skip_perm_check);

extern int install_user_keyrings(struct task_struct *tsk);
extern int install_thread_keyring(struct task_struct *tsk);
extern int install_process_keyring(struct task_struct *tsk);

Expand Down
2 changes: 1 addition & 1 deletion trunk/security/keys/process_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct key_user root_key_user = {
/*
* install user and user session keyrings for a particular UID
*/
static int install_user_keyrings(struct task_struct *tsk)
int install_user_keyrings(struct task_struct *tsk)
{
struct user_struct *user = tsk->user;
struct key *uid_keyring, *session_keyring;
Expand Down
4 changes: 4 additions & 0 deletions trunk/security/keys/request_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ static int call_sbin_request_key(struct key_construction *cons,

kenter("{%d},{%d},%s", key->serial, authkey->serial, op);

ret = install_user_keyrings(tsk);
if (ret < 0)
goto error_alloc;

/* allocate a new session keyring */
sprintf(desc, "_req.%u", key->serial);

Expand Down

0 comments on commit 73e9cea

Please sign in to comment.