Skip to content

Commit f7f1394

Browse files
committed
keys: Grant Link permission to possessers of request_key auth keys
Grant Link permission to the possessers of request_key authentication keys, thereby allowing a daemon that is servicing upcalls to arrange things such that only the necessary auth key is passed to the actual service program and not all the daemon's pending auth keys. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: James Morris <jamorris@linux.microsoft.com>
1 parent ed0ac5c commit f7f1394

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/keys/request_key_auth.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct key *request_key_auth_new(struct key *target, const char *op,
204204

205205
authkey = key_alloc(&key_type_request_key_auth, desc,
206206
cred->fsuid, cred->fsgid, cred,
207-
KEY_POS_VIEW | KEY_POS_READ | KEY_POS_SEARCH |
207+
KEY_POS_VIEW | KEY_POS_READ | KEY_POS_SEARCH | KEY_POS_LINK |
208208
KEY_USR_VIEW, KEY_ALLOC_NOT_IN_QUOTA, NULL);
209209
if (IS_ERR(authkey)) {
210210
ret = PTR_ERR(authkey);

0 commit comments

Comments
 (0)