projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Keys: Fix permissions check for update vs add
[deliverable/linux.git]
/
security
/
keys
/
keyring.c
diff --git
a/security/keys/keyring.c
b/security/keys/keyring.c
index c7a0ab1cfda35aacd868504c3033417c58c9e9e7..4e9fa8be44b8e7071c75cb9f03ea5c2cb6d819bd 100644
(file)
--- a/
security/keys/keyring.c
+++ b/
security/keys/keyring.c
@@
-526,7
+526,7
@@
key_ref_t __keyring_search_one(key_ref_t keyring_ref,
(!key->type->match ||
key->type->match(key, description)) &&
key_permission(make_key_ref(key, possessed),
- perm)
<
0 &&
+ perm)
==
0 &&
!test_bit(KEY_FLAG_REVOKED, &key->flags)
)
goto found;
This page took
0.028669 seconds
and
5
git commands to generate.