From: Eric W. Biederman Date: Thu, 12 Nov 2009 09:39:06 +0000 (-0800) Subject: sysctl binary: Reorder the tests to process wild card entries first. X-Git-Tag: v2.6.33-rc1~392^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=757010f026ab3044c594003e216d00a33ed95c56;p=pandora-kernel.git 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 --- Reading git-diff-tree failed