aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-12 01:39:06 -0800
committerEric W. Biederman <ebiederm@xmission.com>2009-11-12 01:42:31 -0800
commit757010f026ab3044c594003e216d00a33ed95c56 (patch)
tree4e9d44c52c34c09b5a347688af20840be7a1c61a /ipc/ipc_sysctl.c
parentsysctl: sysctl_binary.c Fix compilation when !CONFIG_NET (diff)
downloadlinux-dev-757010f026ab3044c594003e216d00a33ed95c56.tar.xz
linux-dev-757010f026ab3044c594003e216d00a33ed95c56.zip
sysctl binary: Reorder the tests to process wild card entries first.
A malicious user could have passed in a ctl_name of 0 and triggered the well know ctl_name to procname mapping code, instead of the wild card matching code. This is a slight problem as wild card entries don't have procnames, and because in some alternate universe a network device might have ifindex 0. So test for and handle wild card entries first. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions