Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210531
b: refs/heads/master
c: 3d96406
h: refs/heads/master
i:
  210529: b1ff6a3
  210527: 00655ce
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Sep 10, 2010
1 parent e47ef1f commit 8dc19d8
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9d1ac65a9698513d00e5608d93fca0c53f536c14
refs/heads/master: 3d96406c7da1ed5811ea52a3b0905f4f0e295376
3 changes: 2 additions & 1 deletion trunk/security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,8 @@ long keyctl_session_to_parent(void)
goto not_permitted;

/* the keyrings must have the same UID */
if (pcred->tgcred->session_keyring->uid != mycred->euid ||
if ((pcred->tgcred->session_keyring &&
pcred->tgcred->session_keyring->uid != mycred->euid) ||
mycred->tgcred->session_keyring->uid != mycred->euid)
goto not_permitted;

Expand Down

0 comments on commit 8dc19d8

Please sign in to comment.