Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157340
b: refs/heads/master
c: 0c2c9a3
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and James Morris committed Sep 2, 2009
1 parent 973295e commit 7f86734
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 5593122eec26b061cc0b6fbff32118f1aadf4a27
refs/heads/master: 0c2c9a3fc77e8b60d43d9bd2ca46eb4dddb0ff76
8 changes: 7 additions & 1 deletion trunk/security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ long keyctl_revoke_key(key_serial_t id)
key_ref = lookup_user_key(id, 0, KEY_WRITE);
if (IS_ERR(key_ref)) {
ret = PTR_ERR(key_ref);
goto error;
if (ret != -EACCES)
goto error;
key_ref = lookup_user_key(id, 0, KEY_SETATTR);
if (IS_ERR(key_ref)) {
ret = PTR_ERR(key_ref);
goto error;
}
}

key_revoke(key_ref_to_ptr(key_ref));
Expand Down

0 comments on commit 7f86734

Please sign in to comment.