Rechercher une page de manuel
sk_chk_filter
Langue: en
Version: May 2009 (fedora - 06/07/09)
Section: 9 (Appels noyau Linux)
NAME
sk_chk_filter - verify socket filter codeSYNOPSIS
- int sk_chk_filter(struct sock_filter * filter, int flen);
ARGUMENTS
filter
- filter to verify
flen
- length of filter
DESCRIPTION
Check the user's filter code. If we let some ugly filter code slip through kaboom! The filter must contain no references or jumps that are out of range, no illegal instructions, and must end with a RET instruction.
All jumps are forward as they are not signed.
Returns 0 if the rule set is legal or -EINVAL if not.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre