Skip to content
Commit 757010f0 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 63395b65
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment