mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![David Howells](/assets/img/avatar_default.png)
Make use of key preparsing in the big key type so that quota size determination can take place prior to keyring locking when a key is being added. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Steve Dickson <steved@redhat.com>
26 lines
950 B
C
26 lines
950 B
C
/* Big capacity key type.
|
|
*
|
|
* Copyright (C) 2013 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_BIG_KEY_TYPE_H
|
|
#define _KEYS_BIG_KEY_TYPE_H
|
|
|
|
#include <linux/key-type.h>
|
|
|
|
extern struct key_type key_type_big_key;
|
|
|
|
extern int big_key_preparse(struct key_preparsed_payload *prep);
|
|
extern void big_key_free_preparse(struct key_preparsed_payload *prep);
|
|
extern void big_key_revoke(struct key *key);
|
|
extern void big_key_destroy(struct key *key);
|
|
extern void big_key_describe(const struct key *big_key, struct seq_file *m);
|
|
extern long big_key_read(const struct key *key, char __user *buffer, size_t buflen);
|
|
|
|
#endif /* _KEYS_BIG_KEY_TYPE_H */
|