diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-04-03 08:08:03 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 05:04:56 -0500 |
commit | 5cdb35557d022f8dc51b532b5cd1a8e9ed7bcdb7 (patch) | |
tree | f2d947dd3d0302b23ef7dc515f0ff4841e5a5b87 /security/keys/sysctl.c | |
parent | 56992309ccbe71f4321ddd50ee2f76f91b412c1a (diff) |
sysctl security/keys: Remove dead binary sysctl support
Now that sys_sysctl is a generic wrapper around /proc/sys .ctl_name
and .strategy members of sysctl tables are dead code. Remove them.
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'security/keys/sysctl.c')
-rw-r--r-- | security/keys/sysctl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/keys/sysctl.c b/security/keys/sysctl.c index 5e05dc09e2db..3565e2fc10c9 100644 --- a/security/keys/sysctl.c +++ b/security/keys/sysctl.c | |||
@@ -17,7 +17,6 @@ static const int zero, one = 1, max = INT_MAX; | |||
17 | 17 | ||
18 | ctl_table key_sysctls[] = { | 18 | ctl_table key_sysctls[] = { |
19 | { | 19 | { |
20 | .ctl_name = CTL_UNNUMBERED, | ||
21 | .procname = "maxkeys", | 20 | .procname = "maxkeys", |
22 | .data = &key_quota_maxkeys, | 21 | .data = &key_quota_maxkeys, |
23 | .maxlen = sizeof(unsigned), | 22 | .maxlen = sizeof(unsigned), |
@@ -27,7 +26,6 @@ ctl_table key_sysctls[] = { | |||
27 | .extra2 = (void *) &max, | 26 | .extra2 = (void *) &max, |
28 | }, | 27 | }, |
29 | { | 28 | { |
30 | .ctl_name = CTL_UNNUMBERED, | ||
31 | .procname = "maxbytes", | 29 | .procname = "maxbytes", |
32 | .data = &key_quota_maxbytes, | 30 | .data = &key_quota_maxbytes, |
33 | .maxlen = sizeof(unsigned), | 31 | .maxlen = sizeof(unsigned), |
@@ -37,7 +35,6 @@ ctl_table key_sysctls[] = { | |||
37 | .extra2 = (void *) &max, | 35 | .extra2 = (void *) &max, |
38 | }, | 36 | }, |
39 | { | 37 | { |
40 | .ctl_name = CTL_UNNUMBERED, | ||
41 | .procname = "root_maxkeys", | 38 | .procname = "root_maxkeys", |
42 | .data = &key_quota_root_maxkeys, | 39 | .data = &key_quota_root_maxkeys, |
43 | .maxlen = sizeof(unsigned), | 40 | .maxlen = sizeof(unsigned), |
@@ -47,7 +44,6 @@ ctl_table key_sysctls[] = { | |||
47 | .extra2 = (void *) &max, | 44 | .extra2 = (void *) &max, |
48 | }, | 45 | }, |
49 | { | 46 | { |
50 | .ctl_name = CTL_UNNUMBERED, | ||
51 | .procname = "root_maxbytes", | 47 | .procname = "root_maxbytes", |
52 | .data = &key_quota_root_maxbytes, | 48 | .data = &key_quota_root_maxbytes, |
53 | .maxlen = sizeof(unsigned), | 49 | .maxlen = sizeof(unsigned), |
@@ -57,7 +53,6 @@ ctl_table key_sysctls[] = { | |||
57 | .extra2 = (void *) &max, | 53 | .extra2 = (void *) &max, |
58 | }, | 54 | }, |
59 | { | 55 | { |
60 | .ctl_name = CTL_UNNUMBERED, | ||
61 | .procname = "gc_delay", | 56 | .procname = "gc_delay", |
62 | .data = &key_gc_delay, | 57 | .data = &key_gc_delay, |
63 | .maxlen = sizeof(unsigned), | 58 | .maxlen = sizeof(unsigned), |
@@ -66,5 +61,5 @@ ctl_table key_sysctls[] = { | |||
66 | .extra1 = (void *) &zero, | 61 | .extra1 = (void *) &zero, |
67 | .extra2 = (void *) &max, | 62 | .extra2 = (void *) &max, |
68 | }, | 63 | }, |
69 | { .ctl_name = 0 } | 64 | { } |
70 | }; | 65 | }; |