]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/keys/request_key_auth-type.h
soc: renesas: r8a77970-sysc: Correct names of A2DP/A2CN power domains
[mirror_ubuntu-bionic-kernel.git] / include / keys / request_key_auth-type.h
1 /* request_key authorisation token key type
2 *
3 * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
10 */
11
12 #ifndef _KEYS_REQUEST_KEY_AUTH_TYPE_H
13 #define _KEYS_REQUEST_KEY_AUTH_TYPE_H
14
15 #include <linux/key.h>
16
17 /*
18 * Authorisation record for request_key().
19 */
20 struct request_key_auth {
21 struct key *target_key;
22 struct key *dest_keyring;
23 const struct cred *cred;
24 void *callout_info;
25 size_t callout_len;
26 pid_t pid;
27 char op[8];
28 } __randomize_layout;
29
30 static inline struct request_key_auth *get_request_key_auth(const struct key *key)
31 {
32 return key->payload.data[0];
33 }
34
35
36 #endif /* _KEYS_REQUEST_KEY_AUTH_TYPE_H */