Skip to content

Commit ae83681

Browse files
ebiedermLinus Torvalds
authored andcommitted
[PATCH] sysctl: remove support for directory strategy routines
parse_table has support for calling a strategy routine when descending into a directory. To date no one has used this functionality and the /proc/sys interface has no analog to it. So no one is using this functionality kill it and make the binary sysctl code easier to follow. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 6703ddf commit ae83681

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/sysctl.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,14 +1175,6 @@ static int parse_table(int __user *name, int nlen,
11751175
if (table->child) {
11761176
if (ctl_perm(table, 001))
11771177
return -EPERM;
1178-
if (table->strategy) {
1179-
error = table->strategy(
1180-
table, name, nlen,
1181-
oldval, oldlenp,
1182-
newval, newlen);
1183-
if (error)
1184-
return error;
1185-
}
11861178
name++;
11871179
nlen--;
11881180
table = table->child;

0 commit comments

Comments
 (0)