diff options
author | David Howells <dhowells@redhat.com> | 2008-11-14 10:39:13 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-14 10:39:13 +1100 |
commit | e9e349b051d98799b743ebf248cc2d986fedf090 (patch) | |
tree | d59a46ae39d81d27bcf605663ce0e24d1c6db375 /include/keys/keyring-type.h | |
parent | 76aac0e9a17742e60d408be1a706e9aaad370891 (diff) | |
download | blackbird-obmc-linux-e9e349b051d98799b743ebf248cc2d986fedf090.tar.gz blackbird-obmc-linux-e9e349b051d98799b743ebf248cc2d986fedf090.zip |
KEYS: Disperse linux/key_ui.h
Disperse the bits of linux/key_ui.h as the reason they were put here (keyfs)
didn't get in.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/keys/keyring-type.h')
-rw-r--r-- | include/keys/keyring-type.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/keys/keyring-type.h b/include/keys/keyring-type.h new file mode 100644 index 000000000000..843f872a4b63 --- /dev/null +++ b/include/keys/keyring-type.h @@ -0,0 +1,31 @@ +/* Keyring key type + * + * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. + * Written by David Howells (dhowells@redhat.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#ifndef _KEYS_KEYRING_TYPE_H +#define _KEYS_KEYRING_TYPE_H + +#include <linux/key.h> +#include <linux/rcupdate.h> + +/* + * the keyring payload contains a list of the keys to which the keyring is + * subscribed + */ +struct keyring_list { + struct rcu_head rcu; /* RCU deletion hook */ + unsigned short maxkeys; /* max keys this list can hold */ + unsigned short nkeys; /* number of keys currently held */ + unsigned short delkey; /* key to be unlinked by RCU */ + struct key *keys[0]; +}; + + +#endif /* _KEYS_KEYRING_TYPE_H */ |