1 /* Key management controls
3 * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
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.
12 #include <linux/key.h>
13 #include <linux/sysctl.h>
16 ctl_table key_sysctls
[] = {
18 .ctl_name
= CTL_UNNUMBERED
,
19 .procname
= "maxkeys",
20 .data
= &key_quota_maxkeys
,
21 .maxlen
= sizeof(unsigned),
23 .proc_handler
= &proc_dointvec
,
26 .ctl_name
= CTL_UNNUMBERED
,
27 .procname
= "maxbytes",
28 .data
= &key_quota_maxbytes
,
29 .maxlen
= sizeof(unsigned),
31 .proc_handler
= &proc_dointvec
,
34 .ctl_name
= CTL_UNNUMBERED
,
35 .procname
= "root_maxkeys",
36 .data
= &key_quota_root_maxkeys
,
37 .maxlen
= sizeof(unsigned),
39 .proc_handler
= &proc_dointvec
,
42 .ctl_name
= CTL_UNNUMBERED
,
43 .procname
= "root_maxbytes",
44 .data
= &key_quota_root_maxbytes
,
45 .maxlen
= sizeof(unsigned),
47 .proc_handler
= &proc_dointvec
,