Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae836810 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds
Browse files

[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: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6703ddfc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1175,14 +1175,6 @@ repeat:
			if (table->child) {
				if (ctl_perm(table, 001))
					return -EPERM;
				if (table->strategy) {
					error = table->strategy(
						table, name, nlen,
						oldval, oldlenp,
						newval, newlen);
					if (error)
						return error;
				}
				name++;
				nlen--;
				table = table->child;