提交 ae836810 编写于 作者: E Eric W. Biederman 提交者: Linus Torvalds

[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: NEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6703ddfc
...@@ -1175,14 +1175,6 @@ static int parse_table(int __user *name, int nlen, ...@@ -1175,14 +1175,6 @@ static int parse_table(int __user *name, int nlen,
if (table->child) { if (table->child) {
if (ctl_perm(table, 001)) if (ctl_perm(table, 001))
return -EPERM; return -EPERM;
if (table->strategy) {
error = table->strategy(
table, name, nlen,
oldval, oldlenp,
newval, newlen);
if (error)
return error;
}
name++; name++;
nlen--; nlen--;
table = table->child; table = table->child;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册